Skip to main content

build_db_pool

Function build_db_pool 

Source
pub fn build_db_pool(
    auth: &DbAuthConfig,
    pool_max: u32,
    statement_timeout_ms: u32,
    lock_timeout_ms: u32,
) -> Result<DbPool>
Expand description

Build a raw r2d2 pool with the given auth config, for callers that manage the pool lifecycle themselves (e.g. integrated.rs).