for a reader with a fact to look up
Reference
The generated API is the reference, and docs.rs is where it lives. This page is the index into it, plus the two tables that are easier to read here than in rustdoc.
- facade
Re-exports the rest behind features. No feature is on by default.
- Layer 0
Value, Expression, Mod, Query, SqlWriter, the clause traits.
- Layer 1
PostgreSQL, written to its own reference manual.
- Layer 1
MySQL. No RETURNING, because MySQL has none.
- Layer 1
SQLite, shaped by its railroad diagrams.
- Layer 2
Executor, the Execute verbs, transactions. Driver-free.
- Layer 2
The backend over sqlx's three drivers.
- Layer 3
Typed columns, three-state Setter, relations, hooks.
- Layer 3
Factories, sequences, a seedable faker.
- macros
derive(Bind), derive(FromRow), each dialect's sql!.
- Layer 4
The generator, installed as a CLI.
- psql · mysql · sqlite
- the dialect crate — Layer 1
- exec
- Layer 2 traits, no driver
- sqlx-psql · sqlx-mysql · sqlx-sqlite
- Layer 2 with a driver, and the matching dialect
- models
- Layer 3
- factory
- test data (implies models)
- macros
- the derives, and each enabled dialect's sql!
- chrono · uuid · decimal · json
- typed columns beyond the scalars
- tracing
- per-statement spans
The type × dialect table every backend binds by — which Rust type becomes which SQL type on each engine, and where an engine has no equivalent — is docs/type-mappings.md ↗. Views, their declared relations and per-engine updatability are docs/views.md ↗.
0.1.1, published 2026-08-04. MSRV Rust 1.90, edition 2024, MIT. Pre-1.0: pin exactly and read the diff of regenerated files. The CHANGELOG ↗ records what moved.