#sql-database #orm #sqlite #postgresql #mysql

rbdc-pool-mobc

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

3 stable releases

4.5.7 Dec 25, 2023
4.5.6 Nov 14, 2023
4.5.5 Nov 10, 2023

#2280 in Database interfaces

31 downloads per month

Apache-2.0

175KB
5K SLoC

init pool by DBPoolOptions and Pool

  • for example:
 use rbatis::RBatis;
 use rbdc_pool_mobc::MobcPool;
 use rbdc_sqlite::{SqliteConnectOptions, SqliteDriver};
 let rb=RBatis::new();

 let opts=SqliteConnectOptions::new();
 let _ = rb.init_option::<SqliteDriver, SqliteConnectOptions, MobcPool>(SqliteDriver{},opts);

Dependencies

~9–19MB
~245K SLoC