DuckdbRowsinterfaceno test imports itinterface DuckdbRowsWhat runAndReadAll gives.
| Member | Type | What it is |
|---|---|---|
getRowObjects | () => readonly unknown[] |
The port of a DuckDB connection of @duckdb/node-api, typed by the shape of run and runAndReadAll. DuckDB cannot type a binary parameter, so the store gives it bytes as hex (unhex(?) and hex(body)) and the port never sees a binary value. One connection runs one transaction at a time. DuckDB has no index of search that keeps itself current, so a DuckDB store has no search.
import { duckdbPort } from "@intellectual-frontiers/anyfs-sql/duckdb";
// const connection = await (await DuckDBInstance.create(":memory:")).connect();
// const port = duckdbPort(connection);DuckdbRowsinterfaceno test imports itinterface DuckdbRowsWhat runAndReadAll gives.
| Member | Type | What it is |
|---|---|---|
getRowObjects | () => readonly unknown[] |
DuckdbConnectioninterfaceno test imports itinterface DuckdbConnectionA DuckDB connection.
| Member | Type | What it is |
|---|---|---|
run | (sql: string, values?: SqlValue[] | undefined) => Promise<unknown> | |
runAndReadAll | (sql: string, values?: SqlValue[] | undefined) => Promise<DuckdbRows> |
duckdbPortfunctionfunction duckdbPort(connection: DuckdbConnection, close?: () => Promise<void>): SqlPortThe port of a DuckDB connection; close is the caller's to give where the connection has one.