179 points · by upmind · 2y ago · 12 comments
Anyway, cool project.
"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."
Aren't table references resolved at runtime?
Are there any blog series about the details of query planning, optimization etc?