Skip to main content

open_sqlite_session_db

Function open_sqlite_session_db 

Source
pub fn open_sqlite_session_db(
    db_path: &Path,
    sessions_dir: &Path,
) -> Result<Connection, Error>
Expand description

Opens (or creates) the SQLite DB at db_path. If JSON files exist in sessions_dir and the DB is empty, auto-migrates.