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

    @exasol/exasol-driver-ts

    Exasol TypeScript / JavaScript Driver

    The Exasol driver lets Node.js and browser applications connect to Exasol and execute SQL.

    GitHub repository · User guide

    Install the driver and the Node.js WebSocket implementation:

    npm install @exasol/exasol-driver-ts ws @types/ws
    

    Connect, execute a query, and close the driver when finished:

    import { ExasolDriver, ExaWebsocket } from '@exasol/exasol-driver-ts';
    import { WebSocket } from 'ws';

    const driver = new ExasolDriver(
    (url) => new WebSocket(url) as ExaWebsocket,
    { host: 'localhost', port: 8563, user: 'sys', password: 'exasol' },
    );

    await driver.connect();
    await driver.query('SELECT * FROM EXA_ALL_SCHEMAS');
    await driver.close();