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

rbdc-pool-fast

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

5 stable releases

4.5.8 Feb 1, 2024
4.5.6 Jan 2, 2024
4.5.4 Dec 29, 2023

#2761 in Database interfaces

Download history 48/week @ 2023-12-20 373/week @ 2023-12-27 323/week @ 2024-01-03 215/week @ 2024-01-10 210/week @ 2024-01-17 135/week @ 2024-01-24 243/week @ 2024-01-31 91/week @ 2024-02-07 124/week @ 2024-02-14 200/week @ 2024-02-21 398/week @ 2024-02-28 193/week @ 2024-03-06 352/week @ 2024-03-13 333/week @ 2024-03-20 303/week @ 2024-03-27 234/week @ 2024-04-03

1,261 downloads per month
Used in 18 crates (via rbatis)

Apache-2.0

165KB
4.5K SLoC

rbdc driver connection pool based on FastPool

way fast_pool?

  • fast get() method performance
//windows:
//---- bench_pool stdout ----
//Time: 4.0313ms ,each:40 ns/op
//QPS: 24749412 QPS/s
//macos:
//---- bench_pool stdout ----
// Time: 6.373708ms ,each:63 ns/op
// QPS: 15683710 QPS/s
  • for example:
 use rbatis::RBatis;
 use rbdc_pool_fast::FastPool;
 use rbdc_sqlite::{SqliteConnectOptions, SqliteDriver};
 let rb=RBatis::new();

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

Dependencies

~8–20MB
~248K SLoC