Skip to content
CAI
Produce a survey ↗Verify a survey

transact-rs/sqlx

SQLx is a Rust database library that provides type-safe database interactions through compile-time checked SQL queries and macros. It supports multiple database backends, including PostgreSQL, MySQL, SQLite, and MSSQL, with a unified `Any` driver for runtime database selection. The system includes a CLI tool for managing migrations and database schemas, along with comprehensive testing utilities and examples demonstrating various database operations.

67.3

Adequate · 3 August 2026

56k

lines of production code

Rust

primary language

2

bus factor · 552 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2019–2020 · SQLx 0.9.0 migration and CLI tooling

This period focused on the major 0.9.0 release, introducing breaking changes to the core API, configuration, and runtime features. The team refactored internal modules, extracted the PostgreSQL driver, and introduced the Any driver for runtime database selection. Additionally, they built out the sqlx-cli tool for offline builds and migrations, while significantly expanding test coverage across all supported database backends.

40 changes

2021–2023 · Multi-database driver expansion

This period focused on expanding SQLx's database support by implementing full MySQL and SQLite drivers, alongside significant refactoring of the PostgreSQL and macro-core modules. The work introduced a unified 'Any' driver interface, enhanced type mapping across all backends, and added comprehensive testing infrastructure for each supported database.

39 changes

2024–2026 · Configuration and type support expansion

This period focused on enhancing the developer experience through a new sqlx.toml configuration system, which allows fine-grained control over build-time settings, preferred crates, and migration behavior. Concurrently, the library expanded its type system to support PostgreSQL geometric and IP network types, while also adding examples for multi-database setups and SQLite serialization.

9 changes

CAI lens gauges

Survey your own repository

transact-rs/sqlx was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 3 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 1d674f5158 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards