#orm #sqlite #mysql #postgresql

rbdc-pool-fast

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

11 stable releases

new 4.5.15 Apr 29, 2025
4.5.13 Apr 26, 2025
4.5.11 Nov 16, 2024
4.5.10 Oct 9, 2024
4.5.4 Dec 29, 2023

#2467 in Database interfaces

Download history 505/week @ 2025-01-12 507/week @ 2025-01-19 243/week @ 2025-01-26 327/week @ 2025-02-02 354/week @ 2025-02-09 292/week @ 2025-02-16 392/week @ 2025-02-23 269/week @ 2025-03-02 331/week @ 2025-03-09 426/week @ 2025-03-16 327/week @ 2025-03-23 250/week @ 2025-03-30 338/week @ 2025-04-06 329/week @ 2025-04-13 657/week @ 2025-04-20 783/week @ 2025-04-27

2,127 downloads per month
Used in 25 crates (4 directly)

Apache-2.0

185KB
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–18MB
~231K SLoC