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