Skip to content

@sqlrooms/duckdb / BaseDuckDbConnectorImpl

Interface: BaseDuckDbConnectorImpl

Methods

initializeInternal()?

optional initializeInternal(): Promise<void>

Returns

Promise<void>


destroyInternal()?

optional destroyInternal(): Promise<void>

Returns

Promise<void>


executeQueryInternal()

executeQueryInternal<T>(query, signal, queryId?): Promise<Table<T>>

Type Parameters

Type ParameterDefault type
T extends TypeMapany

Parameters

ParameterType
querystring
signalAbortSignal
queryId?string

Returns

Promise<Table<T>>


cancelQueryInternal()?

optional cancelQueryInternal(queryId): Promise<void>

Parameters

ParameterType
queryIdstring

Returns

Promise<void>


loadArrowInternal()?

optional loadArrowInternal(file, tableName, opts?): Promise<void>

Parameters

ParameterType
fileTable<any> | Uint8Array<ArrayBufferLike>
tableNamestring
opts?{ schema?: string; }
opts.schema?string

Returns

Promise<void>


loadObjectsInternal()?

optional loadObjectsInternal(file, tableName, opts?): Promise<void>

Parameters

ParameterType
fileRecord<string, unknown>[]
tableNamestring
opts?{[key: string]: unknown; schema?: string; select?: string[]; where?: string; view?: boolean; temp?: boolean; replace?: boolean; }
opts.schema?string
opts.select?string[]
opts.where?string
opts.view?boolean
opts.temp?boolean
opts.replace?boolean

Returns

Promise<void>


loadFileInternal()?

optional loadFileInternal(file, tableName, opts?): Promise<void>

Parameters

ParameterType
filestring | File
tableNamestring
opts?{[key: string]: unknown; schema?: string; select?: string[]; where?: string; view?: boolean; temp?: boolean; replace?: boolean; method: "read_json" | "read_ndjson" | "read_parquet" | "read_csv" | "auto"; } | {[key: string]: unknown; schema?: string; select?: string[]; where?: string; view?: boolean; temp?: boolean; replace?: boolean; options?: string | Record<string, unknown> | string[]; method: "st_read"; }

Returns

Promise<void>