Skip to main content

build_pool

Function build_pool 

Source
pub fn build_pool(database_url: &str, max_size: u32) -> DbPool
Expand description

Builds a lazily-initialized connection pool: connections are established on first checkout, so this never blocks or fails at startup even if the database is momentarily unavailable.