open_index_database

Function open_index_database 

Source
pub async fn open_index_database(
    db_path: &Path,
    encrypt_if_new: bool,
    password_file: Option<&Path>,
    password_stdin: bool,
) -> Result<Database>
Expand description

Opens or creates a Turso SQLite database, automatically detecting whether encryption is present or requested, loading companion *.cscidxmeta metadata, and configuring page-level AEAD encryption.