Skip to content

SoftwarePlumbers/db-plumbing-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Plumbers DB Plumbing (Map)

Map-based in-memory database.

Tl;DR

let store = new Store(Object, object=>object.key);

store.update({ key: 1, a: "hello", b: "sailor"});

value=store.find(1);

and value should eventually resolve to {key:1, a:"hello", b:"sailor"}

The store also supports remove, find by criteria, and remove by criteria operations. Criteria are created using the abstract-query library, and result sets are returned using the iterator-plumbing asynchronous streams API. It also supports a bulked update operation based on the typed-patch library.

This implementation is intended primarily as a test stub for applications using db-plumbing-mongo or db-plumbing-rest.

For the latest API documentation see The Software Plumbers Site

About

Simple in-memory database using ES6 Map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published