couragecowardlydog / jsonbase

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 100.0%