dbfree-node
v0.5.0
Published
Local file storage - no dbs
Downloads
5
Readme
dbfree-node
Just a simple key value store, local file system, json object
No muss no fuss
var db = require('dbfree-node')( path = 'datafolder' );
// set key
db.set('table1', 'key1', { name: 'chris' });
var value = db.get('table1', 'key1');
db.set('table1', 'key2', { name: 'brandon' });
// get all
db.get('table1');
db.set('table2', 'key1', { name: 'mike' });
db.set('table2', 'key2', { name: 'john' });
// remove key
db.remove('table2', 'key1');