← All repos

sqlx

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

asyncawaitmariadbmysqlpostgrespostgresqlrustsqlsqlite
Browse cluster: SQL databases and distributed systems
2,783commits
548contributors
6languages

Tech stack & purpose

SQLx is an async, pure Rust SQL toolkit built by The LaunchBadge team that enables compile-time checked queries without requiring a domain-specific language. It supports PostgreSQL, MySQL, MariaDB, and SQLite databases and is designed to work with multiple async runtimes including Tokio, async-std, and Actix, as well as different TLS backends. The crate features automatic statement preparation and caching, connection pooling, row streaming, nested transactions, and database-agnostic drivers written in pure Rust with zero unsafe code (except for the SQLite driver, which wraps the libsqlite3 C library).

Community & reference links

Languages

Rust
99.0%
Python
0.7%
Shell
0.1%
Dockerfile
0.1%
PLpgSQL
0.1%
TSQL
0.0%

Contributors (top 30 of 548)