Interface AsyncDuckDBBindings
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>; } Methods
cancelPendingQuery
- cancelPendingQuery(conn): Promise<boolean>
Returns Promise<boolean>
closePrepared
- closePrepared(conn, statement): Promise<void>
Parameters
- conn: number
- statement: number
Returns Promise<void>
copyFileToBuffer
- copyFileToBuffer(name): Promise<Uint8Array>
Returns Promise<Uint8Array>
copyFileToPath
- copyFileToPath(name, out): Promise<void>
Returns Promise<void>
createPrepared
- createPrepared(conn, text): Promise<number>
Returns Promise<number>
disconnect
- disconnect(conn): Promise<void>
Returns Promise<void>
fetchQueryResults
- fetchQueryResults(conn): Promise<Uint8Array>
Returns Promise<Uint8Array>
insertArrowFromIPCStream
- insertArrowFromIPCStream(conn, buffer, options?): Promise<void>
Returns Promise<void>
insertCSVFromPath
- insertCSVFromPath(conn, path, options): Promise<void>
Returns Promise<void>
insertJSONFromPath
- insertJSONFromPath(conn, path, options): Promise<void>
Returns Promise<void>
pollPendingQuery
- pollPendingQuery(conn): Promise<null | Uint8Array>
Returns Promise<null | Uint8Array>
registerFileBuffer
- registerFileBuffer(name, buffer): Promise<void>
Parameters
- name: string
- buffer: Uint8Array
Returns Promise<void>
registerFileHandle
- registerFileHandle<HandleType>(name, handle, protocol, directIO): Promise<void>
Returns Promise<void>
registerFileURL
- registerFileURL(name, url, proto, directIO): Promise<void>
Returns Promise<void>
runPrepared
- runPrepared(conn, statement, params): Promise<Uint8Array>
Parameters
- conn: number
- statement: number
- params: any[]
Returns Promise<Uint8Array>
runQuery
- runQuery(conn, text): Promise<Uint8Array>
Returns Promise<Uint8Array>
sendPrepared
- sendPrepared(conn, statement, params): Promise<Uint8Array>
Parameters
- conn: number
- statement: number
- params: any[]
Returns Promise<Uint8Array>
startPendingQuery
- startPendingQuery(conn, text, allowStreamResult): Promise<null | Uint8Array>
Parameters
- conn: number
- text: string
- allowStreamResult: boolean
Returns Promise<null | Uint8Array>
An interface for the async DuckDB bindings