QuestDB Node.js Client - v4.0.2
    Preparing search index...

    Class UndiciTransport

    HTTP transport implementation using the Undici library.
    Provides high-performance HTTP requests with connection pooling and retry logic.
    Supports both HTTP and HTTPS protocols with configurable authentication.

    Hierarchy

    • HttpTransportBase
      • UndiciTransport
    Index

    Constructors

    Properties

    secure: boolean
    host: string
    port: number
    username: string
    password: string
    token: string
    tlsVerify: boolean
    tlsCA: Buffer
    requestMinThroughput: number
    requestTimeout: number
    retryTimeout: number
    log: Logger

    Methods

    • HTTP transport does not require explicit connection establishment.

      Returns Promise<boolean>

      Error indicating connect is not required for HTTP transport

    • HTTP transport does not require explicit connection closure.

      Returns Promise<void>

      Promise that resolves immediately

    • Gets the default auto-flush row count for HTTP transport.

      Returns number

      Default number of rows that trigger auto-flush

    • Sends data to QuestDB using HTTP POST.

      Parameters

      • data: Buffer

        Buffer containing the data to send

      Returns Promise<boolean>

      Promise resolving to true if data was sent successfully

      Error if request fails after all retries or times out