Skip to content

File based key-value database using node's stream api

Notifications You must be signed in to change notification settings

couragecowardlydog/jsonbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

Releases

No releases published

Packages

No packages published