Git Product home page Git Product logo

stevesdb-client-node's Introduction

StevesDB-Client-Node

StevesDB database client written for Node.js

Usage

Connecting to a StevesDB Server and logging in:

const { StevesDBClient } = require("stevesdb-client-node");

const client = new StevesDBClient();

async function run() {
    try {
        await client.connect("127.0.0.1", 2540); // Connect to the server
    } catch(e) {
        console.error(`Unable to connect to the server: ${e}`);
        return;
    }
    if(!await client.login("stevesdb", "password")) { // Log in to the server and print a message if the provided credentials are invalid
        console.error("Invalid username or password");
        return;
    }
}
run();

You can read more about the client features here

stevesdb-client-node's People

Contributors

stevetheengineer avatar

Watchers

James Cloos avatar  avatar

stevesdb-client-node's Issues

Incomprehensible error

An incomprehensible error occurred while using stevesdb-client which I cannot solve. Probably occurs when adding a record to a table. Data is being added, but an error occurs.

Error:
(node:582446) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined at ListEntriesPacket.serialize (/opt/InfluxiumAPI/node_modules/stevesdb-client-node/src/packets/out/listentriespacket.ts:29:45) at StevesDBClient.sendPacket (/opt/InfluxiumAPI/node_modules/stevesdb-client-node/src/stevesdbclient.ts:235:84) at Table.<anonymous> (/opt/InfluxiumAPI/node_modules/stevesdb-client-node/src/database/table.ts:77:28) at Generator.next (<anonymous>) at /opt/InfluxiumAPI/node_modules/stevesdb-client-node/dist/database/table.js:8:71 at new Promise (<anonymous>) at __awaiter (/opt/InfluxiumAPI/node_modules/stevesdb-client-node/dist/database/table.js:4:12) at Table.getEntries (/opt/InfluxiumAPI/node_modules/stevesdb-client-node/dist/database/table.js:80:16) at Table.<anonymous> (/opt/InfluxiumAPI/node_modules/stevesdb-client-node/src/database/table.ts:112:28) at Generator.next (<anonymous>)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.