Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 663 Bytes

README.md

File metadata and controls

50 lines (29 loc) · 663 Bytes

Key Value Store

Read any huge file , supports more the node's heap size

Update : Caching will be added in next update , to reduce read operation on disk

Installation

Install package directly fom npm ,

npm install jsonbase-store

Intialize store

Either specify file path or new file will be created in current working directory

var store = require('jsonbase-store')('./db');

Insert

await store.insert("1", { 'key' : 'value' },1000);

Update

await store.update("1", { 'key' : 'value' });

Select

await store.update("1");

Delete

await store.update("1");