super-bionic

1.1.3 • Public • Published

Bionic

Get Started

Usage

const db = new Bionic('data');
// see tmp/data.json for db

db.create('tableName', { name: 'first row of data' });
db.create('tableName', { name: 'second row of data' });


db.find('tableName', { name: 'first row of data' });
// > [{ name: 'first row of data', id: 1 }]

db.find('tableName', {});
// > [{ name: 'first row of data', id: 1 }, { name: 'second row of data', id: 2 }]

db.update('tableName', { id: 2 }, { description: 'this was updated' });

db.remove('tableName', { id: 1 });
// > [{ name: 'second row of data', description: 'this was updated', id: 2 }]

Package Sidebar

Install

npm i super-bionic

Weekly Downloads

66

Version

1.1.3

License

MIT

Unpacked Size

6.39 kB

Total Files

3

Last publish

Collaborators

  • s2clcik