sqlx
CommunityCompile-time SQL for Rust async apps.
Authorpatrickhaahr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
sqlx provides a pragmatic approach to executing SQL in Rust without an ORM, offering compile-time verification of queries and safe async execution for database-backed applications. It ensures you can write raw SQL while catching errors at compile time.
Core Features & Use Cases
- Compile-time verification of queries with query! and query_as!.
- Async, non-blocking execution suitable for tokio, async-std, or actix.
- Database-agnostic support for PostgreSQL, MySQL, MariaDB, and SQLite.
- Not an ORM; focuses on safe, direct SQL execution with tooling.
- Use Case: Build high-performance microservices that require precise SQL control and minimal boilerplate.
Quick Start
Create a Rust project, add sqlx to Cargo.toml with the appropriate features (runtime and database), then establish a connection pool and run a compile-time checked query.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sqlx Download link: https://github.com/patrickhaahr/dotfiles/archive/main.zip#sqlx Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.