Crate unreql_deadpool

Source
Expand description

§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?;

Structs§

PoolWrapper
SessionManager

Traits§

IntoPoolWrapper