Package Exports
- kvplus-files
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kvplus-files) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
kvplus-files
Simple filesystem based K/V backend, conforms to the KVPlus API.
Design Decisions / Limitations
- Filesystem-based. Pass in a base
path
into the store constructor. - Separate directory per collection. So, if
store.path = './db/'
,store.createCollection('users')
results in the creation of./db/users/
. - Each object is written to its own file.
store.put('users', 'alice')
results in the creation of the file./db/users/_key_alice.json
Implementation progress
-
createCollection()
- CRUD
-
put()
-
get()
-
exists()
-
del()
-
- Secondary Indexes
-
createIndex()
-
findBy()
-