Skip to main content

lazy_pool

Function lazy_pool 

Source
pub fn lazy_pool(database_url: &str) -> Result<PgPool, Error>
Expand description

A pool that connects on first use with a short acquire timeout, so the web role starts and serves its 503 page while Postgres is down instead of refusing to boot.