db-plumbing-map

0.1.6 • Public • Published

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

Package Sidebar

Install

npm i db-plumbing-map

Weekly Downloads

7

Version

0.1.6

License

SEE LICENSE IN LICENSE

Last publish

Collaborators

  • softwareplumber