3 unstable releases

0.2.0 Feb 11, 2025
0.1.1 Apr 26, 2024
0.1.0 Apr 6, 2024

#917 in Database interfaces

Download history 1/week @ 2024-12-03 7/week @ 2024-12-10 14/week @ 2024-12-31 4/week @ 2025-01-07 117/week @ 2025-02-11

117 downloads per month

MIT license

385KB
3.5K SLoC

Deadpool for UnReQL

This crate implements a deadpool manager for unreql.

Example

use unreql::{r, cmd::connect};
use unreql_deadpool::{IntoPoolWrapper, SessionManager};
use deadpool::managed::Pool;

let cfg = connect::Options::default();
let manager = SessionManager::new(cfg);
let pool = Pool::builder(manager).max_size(20).build().unwrap().wrapper();
let user: User = r.table("users").get("id").exec(&pool).await?;

lib.rs:

Deadpool for UnReQL

This crate implements a deadpool manager for unreql.

Example

use unreql::{r, cmd::connect};
use unreql_deadpool::{IntoPoolWrapper, SessionManager};
use deadpool::managed::Pool;

let cfg = connect::Options::default();
let manager = SessionManager::new(cfg);
let pool = Pool::builder(manager).max_size(20).build().unwrap().wrapper();
let user: User = r.table("users").get("id").exec(&pool).await?;

Dependencies

~16–30MB
~553K SLoC