Skip to main content

open_secondary

Function open_secondary 

Source
pub fn open_secondary(db_path: &Path) -> Result<Connection, DatabaseError>
Expand description

Open a fresh connection to an existing Smriti database.

Configures the same pragmas as open_for_drive so background detection tasks see the same performance profile. The journal mode was chosen when the library opened; this connection follows the file rather than detecting the drive again. Returns an error if the path doesn’t exist or can’t be opened.