Skip to main content

open_database_with_mode

Function open_database_with_mode 

Source
pub fn open_database_with_mode(
    path: &Path,
    db_name: String,
    mode: AccessMode,
) -> Result<Database>
Expand description

Opens a database file and reconstructs the in-memory Database, leaving the long-lived Pager attached for subsequent auto-save (read-write) or consistent-snapshot reads (read-only).