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

    Browser-safe high-level QWP ingress API.

    Applications normally obtain this class through create/connectQwpNodeSender or create/connectQwpBrowserSender, rather than constructing sessions and QwpTableBuffer instances themselves.

    Index

    Constructors

    Accessors

    Methods

    • Commits rows previously sent by transactional auto-flush. This is an ergonomic alias for flush(); pending local rows are included in the same group-closing frame.

      Returns Promise<boolean>

    • Adds a QuestDB DATE column value in milliseconds since the epoch. -9_223_372_036_854_775_808n is QuestDB's DATE NULL sentinel: it is stored as NULL and cannot be stored as an ordinary value.

      Parameters

      • name: string
      • millisecondsSinceEpoch: undefined | null | number | bigint

      Returns QwpSender

    • Parameters

      • name: string
      • unscaled: undefined | null | bigint | Int8Array<ArrayBufferLike>
      • scale: number

      Returns QwpSender

    • Publishes completed rows to the local ingress/replay boundary. This does not wait for a server ACK unless awaitServerAck or awaitDurableAck is set.

      Returns Promise<boolean>

    • Publishes pending rows without waiting for their server ACK and returns the highest frame sequence produced by this call, or -1n when empty. Pass the result to waitForAcknowledged() when an explicit delivery barrier is needed.

      Returns Promise<bigint>

    • Adds a QuestDB INT column value. -2_147_483_648 is QuestDB's INT NULL sentinel: it is stored as NULL and cannot be stored as an ordinary value.

      Parameters

      • name: string
      • value: undefined | null | number

      Returns QwpSender

    • Parameters

      • name: string
      • word0: undefined | null | bigint
      • word1: undefined | null | bigint
      • word2: undefined | null | bigint
      • word3: undefined | null | bigint

      Returns QwpSender

    • Adds a protocol LONG[] column value with between 1 and 32 dimensions.

      Current QuestDB servers reject LONG-array ingestion with long arrays are not supported, only double arrays. This method remains available for Java-client and protocol parity.

      Parameters

      • name: string
      • value: undefined | null | unknown[]

      Returns QwpSender

    • Adds a QuestDB LONG column value. -9_223_372_036_854_775_808n is QuestDB's LONG NULL sentinel: it is stored as NULL and cannot be stored as an ordinary value.

      Parameters

      • name: string
      • value: undefined | null | number | bigint

      Returns QwpSender

    • Internal

      Flushes completed rows and resets borrower-local staging without closing the physical session. Used by the pooled QWP client when a lease returns.

      Returns Promise<void>

    • Independently waits until the cumulative ACK watermark covers a frame.

      Parameters

      • targetSequence: bigint
      • OptionaltimeoutMs: number

      Returns Promise<void>