transact-rs

    transact-rs/sqlx

    🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.

    17.6K stars
    1.8K forks
    62 GitHub watchers
    Updated Nov 8, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 446 contributors on GitHub.

    Use Cases & Benefits

    • Provides an async Rust SQL toolkit with compile-time checked queries supporting PostgreSQL, MySQL, MariaDB, and SQLite without a DSL.
    • Ensures query correctness at compile time by verifying SQL against the actual database schema, reducing runtime errors.
    • Use for building high-performance, type-safe asynchronous database applications in Rust with multiple database backend support.
    • Use for integrating compile-time verified SQL queries in Rust projects to catch SQL errors early during development.
    • Use for managing connection pooling and asynchronous streaming of query results in Rust web services or microservices.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    🧰 The Rust SQL Toolkit

    Built with ❤️ by The LaunchBadge team

    Have a question? Be sure to check the FAQ first!

    SQLx is an async, pure Rust† SQL crate featuring compile-time checked queries without a DSL.

    † The SQLite driver uses the libsqlite3 C library as SQLite is an embedded database (the only way we could be pure Rust for SQLite is by porting all of SQLite to Rust).

    †† SQLx uses #![forbid(unsafe_code)] unless the sqlite feature is enabled. The SQLite driver directly invokes the SQLite3 API via libsqlite3-sys, which requires unsafe.

    SQLx is compatible with the [async-std], [tokio], and [actix] runtimes; and, the [native-tls] and [rustls] TLS backends. When adding the dependency, you must choose a runtime feature that is runtime + tls.

    For backward-compatibility reasons, the runtime and TLS features can either be chosen together as a single feature, or separately.

    For forward compatibility, you should use the separate runtime and TLS features as the combination features may be removed in the future.

    Excerpt from the transact-rs/sqlx README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Sep 15: +23

    +244 stars over 85 days across 8 snapshot days; best day +23 on Sep 15.

    Forks

    1.8K+104

    Open issues

    786-1

    Compared with peers in Database

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    transact-rs/sqlx compared with Database repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    thedotmack/claude-mem115.8K+4.7K75today
    gitroomhq/postiz-app41.3K+4827517 days ago
    etcd-io/etcd52.7K+2877519 days ago
    VictoriaMetrics/VictoriaMetrics18.1K+70751 day ago
    strelov1/freehire3.5K-4845today
    transact-rs/sqlx17.6K—40—
    Category median41.3K+28775—

    Discover Repositories

    Search across tracked repositories by name or description