launchbadge/sqlx
An async, pure Rust SQL toolkit featuring compile-time checked queries without a DSL, supporting PostgreSQL, MySQL, and SQLite.
Core Features
Quick Start
sqlx = { version = "0.8", features = [ "runtime-tokio" ] }Detailed Introduction
SQLx is a robust, asynchronous SQL toolkit for Rust, designed for high performance and safety. It distinguishes itself by offering compile-time checked queries, ensuring type safety and preventing common SQL errors before runtime, all without the need for a domain-specific language. Built with pure Rust (with a minor exception for SQLite), it supports major databases like PostgreSQL, MySQL, MariaDB, and SQLite, and is compatible with various async runtimes and TLS backends. This makes SQLx an ideal choice for building reliable and efficient database-driven applications in Rust, providing a modern alternative to traditional ORMs.