DuckDB Terminal - v0.6.0
    Preparing search index...

    Interface DatabaseOptions

    Configuration options for the Database class.

    interface DatabaseOptions {
        bundles?: DuckDBBundles;
        databasePath?: string;
        maximumThreads?: number;
        storage?: "memory" | "opfs";
    }
    Index
    bundles?: DuckDBBundles

    DuckDB-Wasm bundle manifest used during feature-based bundle selection. Omit this to use DuckDB-Wasm's default, single-threaded jsDelivr bundles.

    databasePath?: string

    The database file path when using OPFS storage. Defaults to ':memory:' for in-memory storage.

    maximumThreads?: number

    Maximum number of DuckDB execution threads.

    Values greater than 1 require a compatible COI bundle and a page served with cross-origin isolation headers. The default bundle set is intentionally single-threaded, so callers opting into multithreading must also provide bundles with a coi entry.

    1
    
    storage?: "memory" | "opfs"

    The storage backend to use.

    • 'memory': In-memory database (default, data lost on page refresh)
    • 'opfs': Origin Private File System (persistent storage)