#orm #mysql #postgres #sqlite

rbdc-pool-deadpool

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

4 stable releases

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

#1589 in Database interfaces

Download history 40/week @ 2023-11-04 35/week @ 2023-11-11 4/week @ 2023-11-18 12/week @ 2023-11-25 15/week @ 2023-12-02 1/week @ 2023-12-09 3/week @ 2023-12-16 35/week @ 2023-12-23 2/week @ 2023-12-30 8/week @ 2024-01-06 1/week @ 2024-01-13 32/week @ 2024-01-20 10/week @ 2024-01-27

53 downloads per month

Apache-2.0

170KB
4.5K SLoC

init pool by DBPoolOptions and Pool

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

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

Dependencies

~7–19MB
~227K SLoC