Skip to main content

open_db

Function open_db 

Source
pub fn open_db(db_path: &Path, key: &VaultKey) -> Result<Connection, String>
Expand description

Opens (or creates) the SQLCipher database at db_path using the 32-byte key.

Executes a verification query; returns Err("Wrong master password") on decryption failure so callers can distinguish auth errors from I/O errors.