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

    Interface SenderTransport

    Interface for QuestDB transport implementations.
    Defines the contract for different transport protocols (HTTP/HTTPS/TCP/TCPS).

    interface SenderTransport {
        connect(): Promise<boolean>;
        send(data: Buffer): Promise<boolean>;
        close(): Promise<void>;
        getDefaultAutoFlushRows(): number;
    }

    Implemented by

    Index

    Methods

    • Establishes a connection to the database server. Should not be called on HTTP transports.

      Returns Promise<boolean>

      Promise resolving to true if connection is successful

    • Sends the data to the database server.

      Parameters

      • data: Buffer

        Buffer containing the data to send

      Returns Promise<boolean>

      Promise resolving to true if data was sent successfully

    • Closes the connection to the database server. Should not be called on HTTP transports.

      Returns Promise<void>

      Promise that resolves when the connection is closed

    • Gets the default number of rows that trigger auto-flush for this transport.

      Returns number

      Default auto-flush row count