Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get queryresult column header? #46

Open
clojurians-org opened this issue May 29, 2018 · 3 comments
Open

how to get queryresult column header? #46

clojurians-org opened this issue May 29, 2018 · 3 comments

Comments

@clojurians-org
Copy link

i can't find the method to get ResultMeta data about columnHeader for queryResult?
so what's the way to acquire it?

@paul-rouse
Copy link
Owner

I am not sure what you are trying to retrieve - there is nothing called ResultMeta. The metadata used internally by mysql-simple comes from the Field type of the lower-level mysql package.

@clojurians-org
Copy link
Author

do this library offer JSON VALUE/MAP binding for Result?
for hdbc, it exist such function to acquire it.

ghci> results <- fetchAllRowsAL stmt
[[("id",SqlString "0"),("desc",SqlNull)],[("id",SqlString "0"),("desc",SqlString "zero")],[("id",SqlString "1"),("desc",SqlString "one")]]

@paul-rouse
Copy link
Owner

No, this is not the same as hdbc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants