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
- Host: GitHub
- URL: https://github.com/skytable/client-nodejs
- Owner: skytable
- License: apache-2.0
- Created: 2023-12-10T17:02:33.000Z (over 2 years ago)
- Default Branch: next
- Last Pushed: 2024-01-02T08:53:32.000Z (about 2 years ago)
- Last Synced: 2025-04-19T16:39:50.364Z (11 months ago)
- Topics: database, database-driver, javascript, js, node, nodejs, skytable, skytable-client, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).