skytable-node
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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.

Package Sidebar

Install

npm i skytable-node

Weekly Downloads

40

Version

0.2.0

License

Apache-2.0

Unpacked Size

84.8 kB

Total Files

27

Last publish

Collaborators

  • ohsayan