dbjson-encrypt

1.0.0 • Public • Published

node.js Database ringan tidak perlu koneksi, dalam Bentuk JSON yang terenkripsi

Install

npm install dbjson-encrypt

Quick Start

const Database = require('dbjson-encrypt');

const dbku = new Database('namaDB', 'enkripkey');

dbku.insertData('users', { id: 1, name: 'Alice' });
dbku.insertData('users', { id: 2, name: 'Lice' });
dbku.insertData('users', { id: 4, name: 'Lice',middlename:'tengah' });

const users = dbku.selectData('users',{name:'Lice',middlename:'tengah'});
console.log(users);

dbku.updateData('users', { id: 1 }, { name: 'Alice Smith' });
dbku.deleteData('users', { id: 1 });
const tables = dbku.listTable();
console.log(tables);
dbku.truncate('users');

Readme

Keywords

Package Sidebar

Install

npm i dbjson-encrypt

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

282 kB

Total Files

5

Last publish

Collaborators

  • caturgateway