JSPM

kvplus-files

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q70873F
  • License MIT

Simple K/V store backend interface to RDF (Turtle) files, uses KVPlus API

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

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