Skip to content

skytable/client-nodejs

Repository files navigation

skytable-node: Skytable driver for NodeJS

Getting started

yarn add skytable-node

Example

const { Config, Query } = require('skytable-node');
const cfg = new Config("root", "password");

async function main() {
    let db;
    try {
        db = await cfg.connect();
        console.log(await db.query(new Query("sysctl report status")));
    } catch (e) {
        console.error(e);
        process.exit(1);
    } finally {
        if (db) {
            await db.disconnect();
        }
    }
}

main()

License

This driver is distributed under the Apache-2.0 License.