Interface DuckDbDriverExperimental

Minimal DuckDB surface the GeoParquet Source needs. A driver owns exactly one DuckDB instance + connection; close() disposes both (and, in the browser, terminates the shared Web Worker).

interface DuckDbDriver {
    close(): Promise<void>;
    query(sql: string, options?: DuckDbQueryOptions): Promise<DuckRow[]>;
    registerFileBuffer(name: string, bytes: Uint8Array): Promise<void>;
    run(sql: string): Promise<void>;
    streamQuery?(sql: string, options?: DuckDbQueryOptions): AsyncIterable<DuckRow[], any, any>;
}

Methods

  • Experimental

    Make a parquet buffer addressable by name inside read_parquet('name'). Used by tests and by callers that already hold bytes; HTTP(S) URLs are read directly by DuckDB and need no registration.

    Parameters

    • name: string
    • bytes: Uint8Array

    Returns Promise<void>