@duckdb/duckdb-wasm
Version:
DuckDB powered by WebAssembly
71 lines (70 loc) • 1.56 kB
TypeScript
export interface DuckDBQueryConfig {
/**
* The polling interval for queries
*/
queryPollingInterval?: number;
/**
* Cast BigInt to Double?
*/
castBigIntToDouble?: boolean;
/**
* Cast Timestamp to Date64?
*/
castTimestampToDate?: boolean;
/**
* Cast Timestamp to Date64?
*/
castDurationToTime64?: boolean;
/**
* Cast Decimal to Double?
*/
castDecimalToDouble?: boolean;
}
export interface DuckDBFilesystemConfig {
/**
* Allow falling back to full HTTP reads if the server does not support range requests.
*/
reliableHeadRequests?: boolean;
allowFullHTTPReads?: boolean;
}
export declare enum DuckDBAccessMode {
UNDEFINED = 0,
AUTOMATIC = 1,
READ_ONLY = 2,
READ_WRITE = 3
}
export interface DuckDBConfig {
/**
* The database path
*/
path?: string;
/**
* The access mode
*/
accessMode?: DuckDBAccessMode;
/**
* The maximum number of threads.
* Note that this will only work with cross-origin isolated sites since it requires SharedArrayBuffers.
*/
maximumThreads?: number;
/**
* The direct io flag
*/
useDirectIO?: boolean;
/**
* The query config
*/
query?: DuckDBQueryConfig;
/**
* The filesystem config
*/
filesystem?: DuckDBFilesystemConfig;
/**
* Whether to allow unsigned extensions
*/
allowUnsignedExtensions?: boolean;
/**
* Custom user agent string
*/
customUserAgent?: string;
}