- Preparing search index...
- The search index is not available
DuckDB-WASM
Class AsyncDuckDBConnection
Accessors
bindings
- get bindings(): AsyncDuckDB
-
Methods
cancelSent
- cancelSent(): Promise<boolean>
-
Returns Promise<boolean>
close
- close(): Promise<void>
-
Returns Promise<void>
getTableNames
- getTableNames(query: string): Promise<string[]>
-
Returns Promise<string[]>
insertArrowFromIPCStream
- insertArrowFromIPCStream(buffer: Uint8Array, options: ArrowInsertOptions): Promise<void>
-
Returns Promise<void>
insertArrowTable
- insertArrowTable(table: Table<any>, options: ArrowInsertOptions): Promise<void>
-
Returns Promise<void>
insertCSVFromPath
- insertCSVFromPath(text: string, options: CSVInsertOptions): Promise<void>
-
Returns Promise<void>
insertJSONFromPath
- insertJSONFromPath(text: string, options: JSONInsertOptions): Promise<void>
-
Returns Promise<void>
prepare
- prepare<T>(text: string): Promise<AsyncPreparedStatement<any>>
-
Type Parameters
-
T extends {
[key: string]: arrow.DataType;
} = any
query
- query<T>(text: string): Promise<Table<T>>
-
Type Parameters
-
T extends {
[key: string]: arrow.DataType;
} = any
Returns Promise<Table<T>>
send
- send<T>(text: string): Promise<AsyncRecordBatchStreamReader<T>>
-
Type Parameters
-
T extends {
[key: string]: arrow.DataType;
} = any
Returns Promise<AsyncRecordBatchStreamReader<T>>
useUnsafe
- useUnsafe<R>(callback: ((bindings: AsyncDuckDB, conn: number) => R)): R
-
Returns R
A thin helper to memoize the connection id