tokio-rs / rdbc

Rust DataBase Connectivity (RDBC) :: Common Rust API for database drivers
Apache License 2.0
569 stars 25 forks source link

Add support for named parameters #37

Open andygrove opened 4 years ago

andygrove commented 4 years ago

RDBC currently supports positional parameters with ? syntax but it would be good to have the option of using named parameters as well using :name syntax.

Ygg01 commented 4 years ago

Pretty sure you can enable the transformation of :name syntax to positional syntax at zero cost using macros. However. You are going to use macros, so it's its own set of problems.