Registry / database / rbatis

rbatis

JSON →
library4.9.6rscratesunverified

The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL.

# Cargo.toml [dependencies] rbatis = "4.9.6"
INSTALL
IMPORT
SIG · RBATIS
R
rbatis
databaserustv4.9.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RBatis
use rbatis::RBatis;

Initializes an async RBatis connection to MySQL.

use rbatis::RBatis; #[tokio::main] async fn main() { let rb = RBatis::new(); rb.init("mysql://root:password@localhost/test", None).unwrap(); println!("Connected!"); }
Debug
Known issues
gotchaRequires an async runtime like tokio or async-std.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=4.0.0
gotchaCompile-time dynamic SQL may require feature flags for different databases.
fix
Enable features like 'mysql', 'postgres', or 'sqlite' in Cargo.toml.
affects: >=4.0.0
Upgrade
Version history
4.9.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
32
OpenAI (training)
1
Resources
rbatis — cargo add rbatis · libregistry