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

rbdc-pool-fast

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

8 stable releases

new 4.5.11 Nov 16, 2024
4.5.10 Oct 9, 2024
4.5.9 May 10, 2024
4.5.8 Feb 1, 2024
4.5.4 Dec 29, 2023

#2028 in Database interfaces

Download history 597/week @ 2024-07-27 563/week @ 2024-08-03 562/week @ 2024-08-10 511/week @ 2024-08-17 441/week @ 2024-08-24 479/week @ 2024-08-31 534/week @ 2024-09-07 387/week @ 2024-09-14 509/week @ 2024-09-21 442/week @ 2024-09-28 990/week @ 2024-10-05 575/week @ 2024-10-12 798/week @ 2024-10-19 441/week @ 2024-10-26 502/week @ 2024-11-02 267/week @ 2024-11-09

2,100 downloads per month
Used in 21 crates (2 directly)

Apache-2.0

180KB
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

~7–17MB
~222K SLoC