transact-rs

sqlx

transact-rs

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

AI 简介

SQLx 是一个专为 Rust 设计的异步 SQL 工具包,支持在编译时检查 SQL 查询而无需使用 DSL。其核心功能包括真正的异步处理、编译时查询验证以及对 PostgreSQL、MySQL 和 SQLite 等多种数据库的支持。项目完全采用 Rust 语言开发(除了 SQLite 驱动依赖 C 库),并且不使用任何不安全代码(除非启用 SQLite 特性)。此外,SQLx 对运行时环境和 TLS 后端保持中立,可以与 async-std、tokio 或 actix 等不同异步运行时兼容。适用于需要高性能、类型安全且跨数据库操作的应用场景。

Rust
Apache License 2.0
17.1k
Stars
1.6k
Forks
63
Watchers
675
Issues

Star 增长

今日+8
近 7 天+35
近 30 天+78
综合评分110.93
默认分支main