Skip to main content

connect

Function connect 

Source
pub async fn connect(url: &str) -> Result<DatabaseConnection, DatabaseError>
Expand description

Open a connection to the relational database.

SQLite needs connection-level tuning that sea-orm’s ConnectOptions cannot express (journal-mode pragmas, busy_timeout, disabling the pool reapers), so the SQLite path is built directly on the sqlx pool. Server backends go through sea-orm unchanged.