Function connect_pg

Source
pub async fn connect_pg(options: PgConnectOptions) -> Result<PgPool>
Expand description

Connects to a Postgres database with the provided connection options returning a connection pool.

§Errors

Returns an error if establishing the database connection fails.