QuestDB JavaScript Client - v5.0.0
    Preparing search index...

    One QWP query/statement and its stream of materialized result batches.

    Implements

    Index

    Constructors

    Properties

    completion: Promise<QwpQueryCompletion>
    requestId: bigint

    Accessors

    Methods

    • Waits for completion without changing the query lifecycle. A finite wait returns false on expiry; the query remains active until it completes, is cancelled explicitly, or its configured query deadline expires.

      Parameters

      • timeoutMs: number

      Returns Promise<boolean>

    • Internal

      Records a batch dropped unread because the consumer has retired or the timeout has expired, and returns the credit to restore for it.

      Parameters

      • creditBytes: number

      Returns number

    • Internal

      Called when the timeout expires. No further batch reaches the consumer: queued ones are dropped. Returns the flow-control credit they held, which the server needs back to stream on toward its terminal.

      Returns number