Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHow get the list of fields + types on a query? #1794
Comments
This comment has been minimized.
|
We don't expose anything that parses your SQL queries for you. You'll likely need to use something much lower level (e.g. libpq or libmysqlclient) which exposes specific details about its prepared statements |
sgrif
closed this
Jul 25, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mamcx commentedJul 22, 2018
I'm building a small ORM-like library and wish to use diesel to handle the low-level stuff. All need to be using only raw sql, but I need to know in query, which names + types is returning:
SELECT *, 1, now(), 'hello' as worldso I can map dynamically. Is this possible with diesel? All the info assume is using the custom DSL, not much in how use sql directly (like https://github.com/StackExchange/Dapper?)