Dominic Tarr committed make readme example trueLatest: 17e4176 on 11/22/2016, 10:07:15 PM | |
📄 | .travis.yml |
📄 | LICENSE |
📄 | README.md |
📄 | index.js |
📄 | package.json |
README.md
flumeview-level
A flumeview implemented on top of level.
Provides indexes which are persistent and can be streamed in order.
example
flumedb.use(name, function (value) {
return [data.foo] // must return an array
})
flumedb.append({foo: 'bar'}, function (err) {
if(err) throw err
//query items from the index directly
flumedb[name].get('bar', function (err, value) {
if(err) throw err
console.log(value) // => {foo: 'bar'})
})
//or query ranges via pull-streams
pull(
flumedb[name].read({gte: 'bar', live: true}),
...
)
})
License
MIT
Built with git-ssb-web