level-changes

    0.0.1 • Public • Published

    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.

    Keywords

    none

    Install

    npm i level-changes

    DownloadsWeekly Downloads

    6

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • bschulzsf
    • autonomous
    • juul