Skip to main content

build_state_with_pool

Function build_state_with_pool 

Source
pub async fn build_state_with_pool(
    config: AppConfig,
    pool: PgPool,
    run_migrations: bool,
) -> Result<AppState>
Expand description

Build full state from config + an existing pool.

Intended for embedding into a larger service that already manages a PgPool.