@tallydb/tallydb.js
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

TallyDB.js

Connect to TallyDB servers in Node.js using TallyDB.js client driver.

Get started

  1. Install TallyDB.js using
npm install tallydb.js
  1. Connect to TallyDB server
const tallydb = require("../dist/index.js");

const connection = tallydb.connect({
  host: "127.0.0.1",
  port: 4053,
  username: "username",
  password: "password"
});
  1. Query the TallyDB server
const query = {
  function: "QUERY",
  slice: {
    name: "slice1",
  },
  range: {
    from: new Date().setMonth(0),
    to: new Date(),
  },
}

connection.query(
  query,
  (response) => {
    console.log("Response", response);
  },
  (err) => {
    console.error(err);
  },
);

Readme

Keywords

Package Sidebar

Install

npm i @tallydb/tallydb.js

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

9.78 kB

Total Files

20

Last publish

Collaborators

  • chamandana