pub fn open_database_read_only(path: &Path, db_name: String) -> Result<Database>Expand description
Opens a database file in read-only mode. Acquires a shared OS-level
advisory lock, so other read-only openers coexist but any writer is
excluded. Attempts to mutate the returned Database (e.g. an
INSERT, or a save_database call against it) bottom out in a
cannot commit: database is opened read-only error from the Pager.