edgedb / edgedb-rust

The official Rust binding for EdgeDB
https://edgedb.com
Apache License 2.0
213 stars 26 forks source link

Example of how to use parameters/query args in edgedb-tokio #230

Closed nocduro closed 1 year ago

nocduro commented 1 year ago

Most of the examples on docs.rs and on github don't use parameters.

Would you consider adding a second example for query that includes using parameters? And maybe another one in the examples folder on github.

Or even just a link to: https://www.edgedb.com/docs/edgeql/parameters from the query docs

There is also another issue #172 that mentions confusion with the query args needing to be a tuple which might be helpful to put in the docs as well.

Thanks!

Dhghomon commented 1 year ago

@nocduro Sure thing! I've also been putting together a repo with a number of examples (including parameters/arguments) that you can see here in the meantime: https://github.com/Dhghomon/edgedb_rust_client_examples

Dhghomon commented 1 year ago

@nocduro Here's the PR - think this is enough?

https://github.com/edgedb/edgedb-rust/pull/232

nocduro commented 1 year ago

Looks good! Thank you