@quack-protocol/sdk - v0.1.0
    Preparing search index...

    Class QuackClient

    Client for DuckDB's Quack HTTP protocol.

    Index

    Properties

    baseUrl: string

    HTTP or HTTPS base URL used for Quack requests.

    fetchImpl: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Fetch implementation used by this client.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    info: QuackConnectionInfo | undefined

    Server metadata populated after a successful connection.

    Accessors

    • get isConnected(): boolean

      Whether this client currently has an open Quack connection.

      Returns boolean

    Methods

    • Encode row objects as one or more flat DataChunks and append them to a table.

      Provide explicit column types for stable production use, especially for empty row sets or columns containing only null.

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      Returns Promise<void>

    • Run a callback inside a DuckDB transaction.

      Commits when the callback succeeds and attempts rollback when it throws.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

    • Open a connection, run a callback, and always disconnect afterwards.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

    • Open a connection, run a callback, and always disconnect afterwards.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>