connect_pg

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.