irodevv / irodb

a database system with tables and the possibility of using a server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IroDB

irodb on npm

Installation

npm i irodb

Example

const { db } = require('irodb');
(async () => {
    const {
        table
    } = await new db({
        cryptData: true,
        path: './database'
        // host: {
        //     url: "http://localhost",
        //     password: 'test1234'
        // }
    });
    const
        userDb = new table("user"),
        userDb2 = new table("test.user2", { cryptData: false });
    await userDb.set('test', 2332323321);
    await userDb2.set('test2', 233232);
    console.log(await userDb.get('test'));
    console.log(await userDb2.get('test'))
})()

About

a database system with tables and the possibility of using a server


Languages

Language:JavaScript 100.0%