Stack Gems
Menu
← Catalog

SQLx

Compile-time checked SQL for Rust

Rust / Systems · Apache-2.0 · 17.6k

Reviewed 2026-08-19 · last push 2026-10-21 · repo checked 2026-10-21

What's Good

Queries checked against the actual database schema. Async from the ground up. No ORM overhead—just SQL. Supports Postgres, MySQL, and SQLite.

The Catch

Compile-time checking requires database connection. Migration story is simpler than some alternatives. Complex queries need understanding.

Verdict

SQL that the compiler actually checks.

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

[![Reviewed on Stack Gems](https://stackgems.com/badge/sqlx.svg)](https://stackgems.com/gems/sqlx)

HTML

<a href="https://stackgems.com/gems/sqlx"><img src="https://stackgems.com/badge/sqlx.svg" alt="SQLx reviewed on Stack Gems" height="20"></a>

Related

Rust →