level-changes
Stream changes on a leveldb database
Last updated 4 years ago by juul .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install level-changes 
SYNC missed versions from official npm registry.

Returns a stream of changes to a leveldb database.

Usage

var db = level('foo');
var c = changes(db, [opts]);
c.on('data', function(change) {
  console.log("Change:", change)
})

The change objects emitted have the properties:

{
  type: 'put', // or 'del'
  key: <key>,
  value: <value> // only present if type is 'put'
}

If {history: true} is set in opts then the stream will first output a 'put' change for each row already present in the database.

Current Tags

  • 0.0.1                                ...           latest (4 years ago)

1 Versions

  • 0.0.1                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |