Skip to main content

connect

Function connect 

Source
pub async fn connect(models: ModelSet, config: &DatabaseConfig) -> Result<Db>
Expand description

Opens a pooled handle to the database for models. Cheap to clone: clones share the pool.