Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 435 Bytes

File metadata and controls

30 lines (19 loc) · 435 Bytes

all-dbs-changes

EventEmitter on _all_dbs

var allDBsChangesPool = require('all-dbs-changes');
var couch_url = 'http://localhost:5984';

allDBsChangesPool.start(couch_url, function (err, pool) {

  if (err) {
    console.log(err);
  }

  pool.on('change', function (db) {
    db.data.results.forEach(function (result) {
      /.../
    });

  });

});

todos:

  • request queue
  • pass through options to changes feed.