How it works
sqlx is asynchronous (it runs on Tokio) and supports PostgreSQL, MySQL and SQLite. Its query macros connect to a development database, or read a saved snapshot, at build time and confirm that each query is valid and that the Rust types match the columns, so a renamed column breaks the build instead of the app.
It is not an ORM: you write plain SQL and get typed rows back. It also ships a migration runner.
sqlx pricing
Related terms
More in Databases and storage
Talking to a database