unreql_deadpool

Crates.iounreql_deadpool
lib.rsunreql_deadpool
version0.1.1
sourcesrc
created_at2024-04-06 18:24:29.026486
updated_at2024-04-26 19:21:24.960399
descriptionDeadpool for UnReQL
homepage
repositoryhttps://github.com/vettich/un-rethinkdb-rs.git
max_upload_size
id1198474
size6,146
(vettich)

documentation

https://docs.rs/unreql_deadpool

README

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?;
Commit count: 34

cargo fmt