ADBC JavaScript Driver Manager
    Preparing search index...

    Class AdbcStatement

    Represents a query statement.

    Implements

    Indexable

    • [key: number]: () => Promise<void>
    Index

    Methods

    • Set the SQL query string.

      Parameters

      • query: string

        The SQL query to execute.

      Returns Promise<void>

    • Set an option on the statement.

      Parameters

      • key: string

        The option name (e.g., "adbc.ingest.target_table").

      • value: string

        The option value.

      Returns void

    • Execute the query and return a RecordBatchReader.

      Per the ADBC spec, behavior is undefined if the statement is reused after calling executeQuery(). Create a new statement for each query.

      Returns Promise<RecordBatchReader<any>>

    • Execute an update command (e.g., INSERT, UPDATE, DELETE) that returns no data.

      Returns Promise<number>

      A Promise resolving to the number of rows affected (if known), or -1.

    • Bind parameters or data for ingestion.

      This is used for bulk ingestion or parameterized queries.

      Parameters

      • data: Table

        Arrow Table containing the data to bind.

      Returns Promise<void>

    • Bind a stream of data for ingestion or parameterized queries.

      Streams batches one at a time to the driver, avoiding full materialization of the reader in memory.

      Parameters

      • reader: RecordBatchReader

        Arrow RecordBatchReader to bind.

      Returns Promise<void>