sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.43k stars 436 forks source link

Adding compile time query validation? #1161

Open AbdulWMughal opened 1 month ago

AbdulWMughal commented 1 month ago

@sfackler

Hi Steven, any plans to add some sort of compile time query validation to tokio_postgres?

sfackler commented 1 month ago

At one point I was working on a macro for that but it's been abandoned for a while: https://github.com/sfackler/rust-postgres-macros. I'm not planning on picking it back up ATM.

AbdulWMughal commented 1 month ago

@sfackler

That was 7 years ago. Do you think it still works?

sfackler commented 1 month ago

Probably not.

AbdulWMughal commented 1 month ago

I do think it would be a valuable Macro to pick up again in the future road map. Since the biggest thing for most people about sqlx and diesel is the compile time validation.

Anyways thanks for your time.