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.