0.1.6 • Published 7 years ago
db-plumbing-map v0.1.6
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