An open API service indexing awesome lists of open source software.

https://github.com/skytable/client-nodejs

Official Node driver for Skytable
https://github.com/skytable/client-nodejs

database database-driver javascript js node nodejs skytable skytable-client ts typescript

Last synced: 11 months ago
JSON representation

Official Node driver for Skytable

Awesome Lists containing this project

README

          

# `skytable-node`: Skytable driver for NodeJS

## Getting started

```shell
yarn add skytable-node
```

## Example

```js
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](./LICENSE).