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

rbdc-pool-fast

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

7 stable releases

4.5.10 Oct 9, 2024
4.5.9 May 10, 2024
4.5.8 Feb 1, 2024
4.5.6 Jan 2, 2024
4.5.4 Dec 29, 2023

#1986 in Database interfaces

Download history 487/week @ 2024-06-27 771/week @ 2024-07-04 619/week @ 2024-07-11 489/week @ 2024-07-18 519/week @ 2024-07-25 539/week @ 2024-08-01 627/week @ 2024-08-08 533/week @ 2024-08-15 440/week @ 2024-08-22 429/week @ 2024-08-29 554/week @ 2024-09-05 438/week @ 2024-09-12 478/week @ 2024-09-19 440/week @ 2024-09-26 958/week @ 2024-10-03 481/week @ 2024-10-10

2,410 downloads per month
Used in 20 crates (via rbatis)

Apache-2.0

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