@exasol/exasol-driver-ts
    Preparing search index...

    Interface Config

    interface Config {
        accessToken?: string;
        autocommit: boolean;
        clientName: string;
        clientOs?: string;
        clientOsUsername?: string;
        clientRuntime?: string;
        clientVersion: string;
        compression: boolean;
        connectTimeout?: number;
        encryption?: boolean;
        fetchSize: number;
        host: string;
        onClose?: () => void;
        onError?: () => void;
        password?: string;
        port: number;
        refreshToken?: string;
        resultSetMaxRows?: number;
        schema?: string;
        url?: string;
        user?: string;
        validateServerCertificate?: boolean;
    }
    Index
    accessToken?: string
    autocommit: boolean
    clientName: string
    clientOs?: string

    Name and version of the client operating system. Defaults to the active platform.

    clientOsUsername?: string

    Operating-system username of the client. Defaults to the active Node.js user when available.

    clientRuntime?: string

    Name and version of the client runtime. Defaults to the active platform.

    clientVersion: string
    compression: boolean
    connectTimeout?: number

    Timeout in milliseconds, applied separately to opening the WebSocket to each host and to the login. When opening a WebSocket times out, the driver tries the next host; when the login times out, connect() rejects. 0, negative values and values above 2147483647 (the maximum timer delay) disable the timeout. Default: 20000

    encryption?: boolean

    Disable encryption.

    Exasol only supports encrypted connections. Setting this to false has no effect.

    fetchSize: number

    Number of bytes to fetch per request. Default: 1024 * 1024 (1 MB)

    host: string

    Host name, IP address or Exasol connection string (DSN) in the format host[..range][/fingerprint][:port][,host...], e.g. exasol1..3:8563 or 10.0.0.10..12,10.0.0.20. The driver connects to one of the hosts in random order and tries the next host if opening the WebSocket fails.

    A fingerprint is the SHA-256 hash of the server certificate in hexadecimal. With a fingerprint, the driver accepts only the certificate with this fingerprint and skips the certificate authority and host name checks. The fingerprint nocertcheck disables the certificate check for its hosts. Fingerprints require Node.js and a websocketFactory that creates ws WebSockets.

    onClose?: () => void

    Called when an open WebSocket closes.

    onError?: () => void

    Called on WebSocket errors: when an open WebSocket reports an error, or once per connect() when no WebSocket could be opened to any host. Not called for configuration errors such as an invalid connection string, which reject connect() before any WebSocket is created.

    password?: string
    port: number

    Exasol port, e.g. 8563. A port in the connection string in host takes precedence.

    refreshToken?: string
    resultSetMaxRows?: number

    Maximum number of rows returned per result set. 0, a negative value or not set means no limit.

    schema?: string
    url?: string

    Websocket URL. Default: wss://<host>:<port>. This allows overriding the default URL if necessary. When set, host is not parsed as a connection string.

    user?: string
    validateServerCertificate?: boolean

    Validate the server certificate: it must be issued by a trusted certificate authority and match the host name. Setting this to false accepts any certificate and logs a warning (visible with a logger at level Warn or higher); it makes the connection vulnerable to man-in-the-middle attacks. A fingerprint in the connection string takes precedence for its hosts. Only true is supported in browsers. Default: true