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

    Interface SenderTransport

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

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

    Implemented by

    Index

    Methods

    • 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

    • 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