ReadonlybaseHTTP or HTTPS base URL used for Quack requests.
ReadonlyfetchFetch implementation used by this client.
Optionalinit: RequestInitServer metadata populated after a successful connection.
Whether this client currently has an open Quack connection.
Append one or more encoded DuckDB DataChunks to a table and return the number of inserted rows.
All chunks are inserted by one INSERT statement, so they succeed or fail
together. Columns are matched by position against the target table.
OptionalschemaName: stringAppend one or more encoded DuckDB DataChunks to a table and return the number of inserted rows.
All chunks are inserted by one INSERT statement, so they succeed or fail
together. Columns are matched by position against the target table.
Optionaloptions: AppendOptionsAppend one or more encoded DuckDB DataChunks to a table and return the number of inserted rows.
All chunks are inserted by one INSERT statement, so they succeed or fail
together. Columns are matched by position against the target table.
Optionaloptions: QuackRequestOptionsAppend one or more encoded DuckDB DataChunks to a table and return the number of inserted rows.
All chunks are inserted by one INSERT statement, so they succeed or fail
together. Columns are matched by position against the target table.
OptionalschemaOrOptions: string | QuackRequestOptions | AppendOptionsAppend data from a Flechette Arrow Table or Arrow IPC bytes. Returns the number of inserted rows.
Encode row objects as flat DataChunks and append them to a table in one statement. Returns the number of inserted rows.
Provide explicit column types for stable production use, especially for
empty row sets or columns containing only null.
Cancel the statement currently running on this client.
Resolves to false when no statement is running.
Disconnect from the Quack server. Safe to call more than once.
Run SQL and return the first row, or null when the result is empty.
Optionaloptions: QuackQueryOptionsRun SQL and return the first row, or null when the result is empty.
Optionaloptions: QuackRequestOptionsSend a heartbeat request, renewing the connection lease.
Run SQL and return exactly one row, throwing when the row count is not one.
Optionaloptions: QuackQueryOptionsRun SQL and return exactly one row, throwing when the row count is not one.
Optionaloptions: QuackRequestOptionsRun SQL and collect all result chunks.
Use the generic parameter to type the materialized rows returned by QuackQueryResult.rows.
Optionaloptions: QuackQueryOptionsRun SQL and collect all result chunks.
Use the generic parameter to type the materialized rows returned by QuackQueryResult.rows.
Optionaloptions: QuackRequestOptionsRun SQL and collect the result as a Flechette Arrow Table.
Optionaloptions: QuackArrowQueryOptionsRun SQL and collect the result as a Flechette Arrow Table.
Optionaloptions: QuackArrowQueryOptionsRun SQL and collect the result as Arrow IPC bytes.
Optionaloptions: QuackArrowQueryIPCOptionsRun SQL and collect the result as Arrow IPC bytes.
Optionaloptions: QuackArrowQueryIPCOptionsSend a raw Quack protocol message.
This is an escape hatch for protocol tests and advanced clients; most application code should use higher-level methods.
Run SQL and stream decoded DuckDB DataChunks without materializing all rows.
Breaking out of the loop cancels the remaining result on the server. A statement started on this client before the stream is drained interrupts the stream.
Optionaloptions: QuackQueryOptionsRun SQL and stream decoded DuckDB DataChunks without materializing all rows.
Breaking out of the loop cancels the remaining result on the server. A statement started on this client before the stream is drained interrupts the stream.
Optionaloptions: QuackRequestOptionsRun SQL and stream result chunks as Flechette Arrow Tables.
Optionaloptions: QuackArrowQueryOptionsRun SQL and stream result chunks as Flechette Arrow Tables.
Optionaloptions: QuackArrowQueryOptionsRun SQL and stream materialized rows.
Optionaloptions: QuackQueryOptionsRun SQL and stream materialized rows.
Optionaloptions: QuackRequestOptionsRun a callback inside a DuckDB transaction.
Commits when the callback succeeds and attempts rollback when it throws.
Run SQL and return the first column from every materialized row.
Optionaloptions: QuackQueryOptionsRun SQL and return the first column from every materialized row.
Optionaloptions: QuackRequestOptionsStaticconnectOpen a Quack connection.
Accepts bare host strings such as localhost:9494, DuckDB-style
quack: URIs, and direct HTTP(S) URLs.
StaticwithOpen a connection, run a callback, and always disconnect afterwards.
Open a connection, run a callback, and always disconnect afterwards.
Client for DuckDB's Quack HTTP protocol.
A Quack connection runs one statement at a time; the server cancels a running statement when the next one starts. The client therefore queues statements issued concurrently on the same instance. Streams release the queue between batches, so a statement started while a stream is not yet drained interrupts that stream. Use separate clients for concurrent work.