Reminds me of the !sql in rust-postgres-macros:
https://github.com/sfackler/rust-postgres-macros#sql
With the difference: it uses the PostgreSQL parser, not a generic SQL parser
https://github.com/sfackler/rust-postgres-macros#sql
With the difference: it uses the PostgreSQL parser, not a generic SQL parser
Though it doesn't seem particularly maintained