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.

View on GitHub ↗Jump to charts ↓Open shareable report →

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 3rd, 2026
Created on December 28th, 2019
Open Issues & Pull Requests: 768 (+0)
GitHub issues: Enabled
Number of forks: 1,687
Total Stargazers: 17,454 (+0)
Total Subscribers: 68 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 39.9 hours
Mean response time: 94.4 days
90th percentile: 319.6 days
Tracked items: 510

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 97% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "macros" is answered fastest, typically in about 3 hours, while "enhancement" waits about 2 days. 56% of tracked open issues have had no activity in three months. Only 5% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 305
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 845 days
Stale 30+ days: 272
Stale 90+ days: 226

Recent activity

Opened in 7 days: 0
Closed in 7 days: 2
Comments in 7 days: 0
Events in 7 days: 1

Top labels

  • bug (271)
  • enhancement (212)
  • db:postgres (27)
  • db:sqlite (18)
  • macros (15)
  • db:mysql (11)
  • proposal (9)
  • E-easy (7)

Detailed Description

SQLx is a Rust SQL toolkit that provides async, pure Rust database access with compile-time checked queries and no domain-specific language requirement.

The tool addresses the need for type-safe database interactions in Rust without sacrificing performance or requiring a query DSL. It achieves this through compile-time query verification that catches errors before runtime, while maintaining a straightforward API that works directly with SQL. The crate supports PostgreSQL, MySQL, MariaDB, and SQLite, with pure Rust implementations for the PostgreSQL and MySQL drivers. It is built on async/await primitives for concurrent database operations and includes features like connection pooling, automatic statement caching, and row streaming for efficient data handling.

Projects should adopt this tool if they need reliable, type-checked database access in Rust without the overhead of a full ORM. It suits applications ranging from web services to data-intensive systems where compile-time guarantees matter. The tool works across different async runtimes and TLS backends, making it flexible for various deployment scenarios. SQLite support relies on the C library rather than a pure Rust implementation, which is a practical trade-off given SQLite's complexity.

The project maintains a substantial user base, with most open issues coming from adopters reporting real-world problems rather than from the core team. Maintainers respond to new issues and pull requests within a few days. Development work is concentrated on bug fixes and enhancements, with particular focus on PostgreSQL support.