3 ms·
SQLx seems to do some form of this. though what you're suggesting may remove the build time dependency on "connecting" to a SQLite database. "SQLx supports com
by khimaros 2y ago
SQLx seems to do some form of this. though what you're suggesting may remove the build time dependency on "connecting" to a SQLite database.
"SQLx supports compile-time checked queries. It does not, however, do this by providing a Rust API or DSL (domain-specific language) for building queries. Instead, it provides macros that take regular SQL as input and ensure that it is valid for your database. The way this works is that SQLx connects to your development DB at compile time to have the database itself verify (and return some info on) your SQL queries."
https://github.com/launchbadge/sqlx https://github.com/launchbadge/sqlx