上传者: 42157166
|
上传时间: 2021-12-02 17:06:35
|
文件大小: 11KB
|
文件类型: -
拖把
MongoDB oplog 的通用处理器,将注册的事务路由到指定的使用者。 它处理类型为插入、更新、删除和命令的操作。
用法
var Moplog = require ( 'moplog' ) ;
// Initialize with the location of the nconf config file to use and the
// directory to the consumers.
var moplog = new Moplog ( './config.json' , './consumers' ) ;
// Assuming that your config has valid MongoDB connection details as well as
// valid consumers configured, this will kick off the