#orm #mysql #postgres #sqlite

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

#1958 in Database interfaces

Download history 367/week @ 2023-11-10 263/week @ 2023-11-17 342/week @ 2023-11-24 198/week @ 2023-12-01 400/week @ 2023-12-08 281/week @ 2023-12-15 330/week @ 2023-12-22 56/week @ 2023-12-29 66/week @ 2024-01-05 78/week @ 2024-01-12 60/week @ 2024-01-19 69/week @ 2024-01-26 43/week @ 2024-02-02 65/week @ 2024-02-09 190/week @ 2024-02-16

374 downloads per month

Apache-2.0

170KB
4.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–21MB
~252K SLoC