# 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.

Repository: https://github.com/transact-rs/sqlx
Canonical: https://ross.abutalabs.com/products/transact-rs-sqlx
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: sql, rust, postgres, mysql, async, await, mariadb, postgresql, sqlite
Last push: 2026-08-20T06:38:58+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 2440, "days_push": 13, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17429, forks 1681 (observed 2026-08-28T04:11:19.659471+00:00)

## What it is
SQLx is an async, pure Rust SQL toolkit providing database drivers for PostgreSQL, MySQL, MariaDB, and SQLite. It features compile-time checked queries without a DSL and works across async runtimes like tokio and async-std.

## Use cases
- query postgres from rust async code
- compile-time checked sql queries in rust
- connect to mysql without an orm
- use sqlite in an async rust application
- write database-agnostic rust code across postgres and mysql
- avoid unsafe code in database drivers

## When to choose
- you want async database access in Rust with compile-time query checking
- you prefer raw SQL over an ORM DSL
- you need pure-Rust drivers for Postgres or MySQL
- you need runtime-agnostic async support (tokio, async-std, actix)

## When to avoid
- you need a full ORM with entity relationships and migrations out of the box
- you need MSSQL support
- you want a synchronous database client
- you need a database other than PostgreSQL, MySQL, MariaDB, or SQLite

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database, orm
- domain: databases, backend, web-development, developer-tools
- platform: rust, cross-platform
- tags: async, sql, postgresql, mysql, sqlite, compile-time-checked-queries, tokio, pure-rust

## Member repositories
- transact-rs/sqlx (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:19.659471+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:02:57.765318+00:00, confidence not recorded.
  - readme: https://github.com/transact-rs/sqlx (fetched 2026-08-28T04:11:19.659471+00:00, sha af45e939a890)
- Data as of 2026-08-30T08:39:29.467469+00:00.
