Function new_pool

Source
pub async fn new_pool() -> Result<Pool<Postgres>>
Expand description

Create a new database pool.

§Errors

Will return an error if the database URL can’t be read, or if the connection to the database can’t be established.