pub async fn connect(config: &PoolConfig) -> Result<PgPool, Error>Expand description
Open a pool and prove it works with one connection, with the session settings on every connection.
ยงErrors
Fails when the settings are refused, as PoolConfig::connection_uri says, or the
database cannot be reached.