Interface AsyncDuckDBBindings

An interface for the async DuckDB bindings

interface AsyncDuckDBBindings {
    logger: Logger;
    cancelPendingQuery(conn): Promise<boolean>;
    closePrepared(conn, statement): Promise<void>;
    copyFileToBuffer(name): Promise<Uint8Array>;
    copyFileToPath(name, out): Promise<void>;
    createPrepared(conn, text): Promise<number>;
    disconnect(conn): Promise<void>;
    fetchQueryResults(conn): Promise<Uint8Array>;
    insertArrowFromIPCStream(conn, buffer, options?): Promise<void>;
    insertCSVFromPath(conn, path, options): Promise<void>;
    insertJSONFromPath(conn, path, options): Promise<void>;
    pollPendingQuery(conn): Promise<null | Uint8Array>;
    registerFileBuffer(name, buffer): Promise<void>;
    registerFileHandle<HandleType>(name, handle, protocol, directIO): Promise<void>;
    registerFileURL(name, url, proto, directIO): Promise<void>;
    runPrepared(conn, statement, params): Promise<Uint8Array>;
    runQuery(conn, text): Promise<Uint8Array>;
    sendPrepared(conn, statement, params): Promise<Uint8Array>;
    startPendingQuery(conn, text, allowStreamResult): Promise<null | Uint8Array>;
}

Implemented by

Properties

logger: Logger

Methods