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

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

#2601 in Database interfaces

Apache-2.0

175KB
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–16MB
~210K SLoC