Interface DuckDBRuntime

The duckdb runtime

interface DuckDBRuntime {
    _files?: Map<string, any>;
    _udfFunctions: Map<number, UDFFunction>;
    callScalarUDF(mod, response, funcId, descPtr, descSize, ptrsPtr, ptrsSize): void;
    checkDirectory(mod, pathPtr, pathLen): boolean;
    checkFile(mod, pathPtr, pathLen): boolean;
    closeFile(mod, fileId): void;
    createDirectory(mod, pathPtr, pathLen): void;
    getDefaultDataProtocol(mod): number;
    getLastFileModificationTime(mod, fileId): number;
    glob(mod, pathPtr, pathLen): void;
    listDirectoryEntries(mod, pathPtr, pathLen): boolean;
    moveFile(mod, fromPtr, fromLen, toPtr, toLen): void;
    openFile(mod, fileId, flags): void;
    readFile(mod, fileId, buffer, bytes, location): number;
    removeDirectory(mod, pathPtr, pathLen): void;
    removeFile(mod, pathPtr, pathLen): void;
    syncFile(mod, fileId): void;
    testPlatformFeature(mod, feature): boolean;
    truncateFile(mod, fileId, newSize): void;
    writeFile(mod, fileId, buffer, bytes, location): number;
}

Properties

_files?: Map<string, any>
_udfFunctions: Map<number, UDFFunction>

Methods