Skip to main content

create_pool

Function create_pool 

Source
pub fn create_pool(config: PoolConfig) -> Result<Pool>
Expand description

Creates a new connection pool from configuration.

ยงErrors

Returns Error::Other wrapping the deadpool builder failure if the pool cannot be constructed (e.g. invalid max_size). Connections themselves are opened lazily on first use, so endpoint/auth errors surface from Pool::get, not here.