Skip to main content

connect

Function connect 

Source
pub async fn connect(database_url: &str) -> Result<PgPool, DomainError>
Expand description

One-shot connect. Suitable for short-lived CLI commands where a fast failure beats a long retry loop. Reads pool sizing from env.