Function db_adapter::establish_connection [−][src]
pub async fn establish_connection() -> PgPool
Expand description
Creates a connection pool to the database
Panic
Panics if DATABASE_URL
is not set or if the connection could not be established.