You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've created a new crate which allows one to use named arguments on queries. This is achieved using a macro which rewrites the named arguments into positional arguments. This crate is specifically aimed at supporting rust-postgres because it outputs the query and array exactly as needed.
This crate happily lives on it's own, but it may be nice to point people towards the possibility of using named arguments in the tokio-postgres documentation. Would you be willing to add such a reference to your documentation and/or README?
The docs can be found at: https://docs.rs/pg_named_args/. This includes some examples on how to use it. We've been using this internally for some time, and it works great for us, especially once you have more than a few arguments.
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for all the work on rust-postgres!
We've created a new crate which allows one to use named arguments on queries. This is achieved using a macro which rewrites the named arguments into positional arguments. This crate is specifically aimed at supporting rust-postgres because it outputs the query and array exactly as needed.
This crate happily lives on it's own, but it may be nice to point people towards the possibility of using named arguments in the tokio-postgres documentation. Would you be willing to add such a reference to your documentation and/or README?
The docs can be found at: https://docs.rs/pg_named_args/. This includes some examples on how to use it. We've been using this internally for some time, and it works great for us, especially once you have more than a few arguments.
The text was updated successfully, but these errors were encountered: