SQLite for Nativescript
    Preparing search index...

    Interface DatabaseOptions

    interface DatabaseOptions {
        busyTimeout?: number;
        cursorWindowName?: string;
        cursorWindowSize?: number;
        engine?: string;
        flags?: number;
        initSql?: string;
        int64?: Int64Mode;
        readOnly?: boolean;
        threading?: boolean;
        transformBlobs?: boolean;
        wal?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    busyTimeout?: number

    milliseconds, default 5000, negative to disable

    cursorWindowName?: string

    Android cursor windows do not exist anymore.

    cursorWindowSize?: number

    Android cursor windows do not exist anymore.

    engine?: string

    The SQLite library: a name the platform can dlopen (libsqliteJni.so is androidx sqlite-bundled, libsqlcipher.so...), or null for the SQLite of the process (iOS). Default: configure's engine, else its defaultEngine; without any, no database opens.

    flags?: number

    sqlite3_open_v2 flags. Default: READWRITE | CREATE.

    initSql?: string

    SQL run right after opening, e.g. PRAGMA key = '...' for SQLCipher

    int64?: Int64Mode
    readOnly?: boolean
    threading?: boolean

    Every request runs on a native thread now.

    transformBlobs?: boolean

    BLOB values: a Uint8Array (default) or, with false, an ArrayBuffer.

    wal?: boolean

    switch to write-ahead logging after opening