kappa-view-level
make kappa-core views over leveldb
Usage
var kappa = var View = var ram = var memdb = var core = var lvl = var view = core core
outputs
null 'bar'
null 'baz'
NotFoundError: Key not found in database [nix]
API
var View =
var view = View(leveldb, opts)
Expects a LevelUP or LevelDOWN instance leveldb
.
Required opts
are:
map: function (msg)
: a mapper function that returns an array of[key, value]
arrays.api: {}
: an object that defines API functions that the view exposes. These can have whatever names you want, be sync or async, and return whatever you'd like.
Install
With npm installed, run
$ npm install kappa-view-level
Acknowledgments
kappa-view-level was inspired by flumeview-level.
License
ISC