irodb
v1.0.0
Published
a database system with tables and the possibility of using a server
Downloads
16
Maintainers
Readme
IroDB
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'))
})()