Skip to content

Simple filesystem based K/V backend, conforms to the KVPlus API.

License

Notifications You must be signed in to change notification settings

nodeSolidServer/kvplus-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kvplus-files

NPM Version

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()
    • remove()
  • Secondary Indexes
    • createIndex()
    • findBy()

About

Simple filesystem based K/V backend, conforms to the KVPlus API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published