Skip to main content

connect

Function connect 

Source
pub async fn connect() -> Result<DatabaseConnection, DbErr>
Expand description

Connects to the database named by the current environment’s config/<env>.yml database.url, honouring its logger.sql toggle and any database.pool / database.connect_timeout knobs.