Skip to main content

open_pool

Function open_pool 

Source
pub fn open_pool(path: &Path) -> Result<Pool<SqliteConnectionManager>>
Expand description

Open and migrate the DB at path, returning a ready-to-use connection pool. Migrations run on a single bootstrap connection that is dropped before the pool is built, so pooled handles never see a half-applied DB.