@photostructure/sqlite
    Preparing search index...

    Interface DatabaseSyncOptions

    Configuration options for opening a database. This interface matches Node.js sqlite module's DatabaseSyncOptions.

    interface DatabaseSyncOptions {
        allowExtension?: boolean;
        enableDoubleQuotedStringLiterals?: boolean;
        enableForeignKeyConstraints?: boolean;
        location?: string;
        readOnly?: boolean;
        timeout?: number;
    }
    Index

    Properties

    allowExtension?: boolean

    If true, enables loading of SQLite extensions.

    false
    
    enableDoubleQuotedStringLiterals?: boolean

    If true, double-quoted string literals are allowed.

    If enabled, double quotes can be misinterpreted as identifiers instead of string literals, leading to confusing errors.

    The SQLite documentation strongly recommends avoiding double-quoted strings entirely.

    enableForeignKeyConstraints?: boolean

    If true, foreign key constraints are enforced.

    true
    
    location?: string

    Path to the database file. Use ':memory:' for an in-memory database.

    readOnly?: boolean

    If true, the database is opened in read-only mode.

    false
    
    timeout?: number

    Sets the busy timeout in milliseconds.

    5000