# SQLx

> The Rust SQL Toolkit

Source: https://talira.ai/catalog/sqlx-b3cqrj9z
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [LaunchBadge](https://talira.ai/orgs/launchbadge.md)

SQLx is an async, pure [Rust](https://talira.ai/catalog/rust-mf51vs5t.md) SQL toolkit with compile-time checked queries and no DSL: you write plain SQL and, if you want, the query! macros check it against a real database while compiling. It isn't an ORM. It supports [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md), MySQL, MariaDB and [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md) (the Postgres and MySQL drivers use no unsafe code), runs on tokio, async-std or actix with native-tls or rustls, and includes connection pooling, row streaming, prepared statement caching, Postgres LISTEN/NOTIFY, nested transactions with savepoints and an Any driver chosen at runtime. The sqlx-cli tool manages migrations and prepares query data for offline builds. MSSQL support was removed in 0.7.

## Links

- GitHub: https://github.com/transact-rs/sqlx
- Docs: https://docs.rs/sqlx

## Problems it solves

- query Postgres from async Rust with plain SQL
- check my SQL queries against the database at compile time in Rust
- a Rust database library that isn't an ORM
- run database migrations for a Rust app

## Features

- compile-time checked SQL
- async, runtime agnostic
- PostgreSQL, MySQL, MariaDB and SQLite
- connection pooling
- row streaming
- LISTEN/NOTIFY
- nested transactions
- migrations CLI

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by LaunchBadge

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [SeaORM](https://talira.ai/catalog/seaorm-rbxbb26e.md): A powerful relational ORM for Rust

## Sources

[^1]: https://github.com/transact-rs/sqlx/blob/main/LICENSE-MIT (checked 24 Nov 2026)
[^2]: https://github.com/transact-rs/sqlx/blob/main/LICENSE-APACHE (checked 24 Nov 2026)
