We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Implement a query function on the Connection object which allows the user to query for specific data.
query
Connection
query should return something (possibly a vec of the underlying datatype?). It shoud also allow the user to unmarshall it into a struct.
Example:
struct BarFoo { foo: i32, bar: String } for row in &conn.query("select foo, bar FROM foobar", &[]).unwrap() { let my_foo_bar = BarFoo { foo: row.get(0), bar: row.get(1), } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Implement a
query
function on theConnection
object which allows the user to query for specific data.query
should return something (possibly a vec of the underlying datatype?). It shoud also allow the user to unmarshall it into a struct.Example:
The text was updated successfully, but these errors were encountered: