{"_id":"zongji","_rev":"35-aaa029d6cf39ca55072c163d24520bbd","name":"zongji","description":"A mysql binlog listener running on Node.js","dist-tags":{"latest":"0.5.1"},"versions":{"0.1.0":{"name":"zongji","version":"0.1.0","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"license":"MIT","gypfile":true,"bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.8.2"},"_id":"zongji@0.1.0","dist":{"shasum":"80127e6573a56ee49892bd3db60e15200c10cabc","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.1.0.tgz","integrity":"sha512-PcRhQotlRuJUjMBsPBoS/K+4hG8NsPKLcaBxWU/E0cABs1tXkmOO5S0UkaqJmS+Fj3McdD6JjOQtKKyQ4JAkyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAposNkzGjeM7gQJMScNmFRFHZKOUU0J8JY5LfXfEnzQIgVL8AvBAf5YnM3JaQsWROEiDIh0UXE55XOPLX97w7NCU="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}]},"0.1.1":{"name":"zongji","version":"0.1.1","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"license":"MIT","gypfile":true,"bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.8.2"},"_id":"zongji@0.1.1","dist":{"shasum":"47b25c25b812a37a1aa2c8267177f45fd536d9d7","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.1.1.tgz","integrity":"sha512-OazvSH93No/gQWV2wm67IImKVXfV71h6yITdkeXNdl132OprOguxs/KQPMtffqUwOxgcoH+JmFcCVE80ODvv9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwN/WMK2xWhSPjZmBq3IskLkppaLpX81MG42DxMouc3wIhAKFVBJPeFcxfEoawdWHPoMldDjV/M62elqXnMJv8pkZ2"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}]},"0.1.2":{"name":"zongji","version":"0.1.2","description":"A mysql binlog listener running on Node.js","main":"index.js","engines":{"node":"0.10"},"directories":{"test":"test"},"scripts":{"test":"make test","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"license":"MIT","gypfile":true,"bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.8.2"},"_id":"zongji@0.1.2","dist":{"shasum":"7255529b5bd58a9c719084b038383d10099d9177","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.1.2.tgz","integrity":"sha512-xyLVkm+rGE2p/2s+X2SxyzIKXuLt4HyDDxTmNEucXHOXdaB+MdV7qjMkUzrKBBkKJZ60KLoiQPaE440ekwFprg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjagNe5TN25ppiZgghJfqAYVdw8fXvAs/R9tgXd39fcAIgMLfQiqxr+ux2p8wT99n9tblsCLL53uEJt2gm/2U3R0k="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}]},"0.2.0":{"name":"zongji","version":"0.2.0","description":"A mysql binlog listener running on Node.js","main":"index.js","engines":{"node":"0.10"},"directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.8.2"},"dependencies":{"mysql":"~2.0.1"},"_id":"zongji@0.2.0","dist":{"shasum":"dd92eb0a267eb7109fb0e604013a8fbb4de7ac8a","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.2.0.tgz","integrity":"sha512-YJt07IoHSOXOZR/XUhggPxolJa5OOfDFUi2sumhUvVGkOly5GPtqa38Sqa7gRUWvzmzKfqcpEX/qCZvTm/D4Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE35ax9sjZSHF9xeqPHLklas2LyLPYjlUD1cFDRrMK+kAiEA3iInfVepNp1O+J8Z7klR4mIggvvkL7qZifVvpgtEM+U="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}]},"0.2.1":{"name":"zongji","version":"0.2.1","description":"A mysql binlog listener running on Node.js","main":"index.js","engines":{"node":"0.10"},"directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.8.2"},"dependencies":{"mysql":"~2.0.1"},"gitHead":"d55b8dc95849136388282373789f7347ad7a0055","_id":"zongji@0.2.1","_shasum":"a5d81d4c261645ad9860b4a57f9c6f7051ed1bac","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"a5d81d4c261645ad9860b4a57f9c6f7051ed1bac","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.2.1.tgz","integrity":"sha512-5tmA9Xigby8QJS1C0zak8VerIDwVL0Wf4PwsTycClmJfN97A199TeEpvGfvnD5uvWmvfIgbLdxNvOuKt9+OItw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUP91Xk/dy1zaGjoMCY4POb8qA5N2UZVEJp/c4xYv1wAIgTcFHLYjGYqob8FWjyQv5FTKs4wHSGG/Fzp9U2k+AlWc="}]}},"0.3.0":{"name":"zongji","version":"0.3.0","description":"A mysql binlog listener running on Node.js","main":"index.js","engines":{"node":"0.10"},"directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.0"},"dependencies":{"mysql":"~2.5.3"},"gitHead":"f149e443d7d915108ce306b7214a73b88ae4a323","_id":"zongji@0.3.0","_shasum":"5abfca08fd18ad8998e644d8787a23ba757d7361","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"5abfca08fd18ad8998e644d8787a23ba757d7361","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.3.0.tgz","integrity":"sha512-zC3AXg52TzVHO9YGphUcTXdlszR0D08Q0tjEqWqJHSpkE+ke+oe5FgyBI50/KBxtKxyzmTihYAn9CRV+VXJVyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvpjAG2Bw5nsxmdtMqU37VjG8Sj+AQiQy9LRahhwCO+gIgEQ9BGFNyINlHO+WypQr37xkXimThskoone+uRb8sX4o="}]}},"0.3.1":{"name":"zongji","version":"0.3.1","description":"A mysql binlog listener running on Node.js","main":"index.js","engines":{"node":"0.10"},"directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.0"},"dependencies":{"mysql":"~2.5.5"},"gitHead":"92a21cbba97beb52de8d07f8df47e1ae406198ac","_id":"zongji@0.3.1","_shasum":"ffb4b84dea2d3c9de98b7f4817fe9d2e9b1ec5ae","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"ffb4b84dea2d3c9de98b7f4817fe9d2e9b1ec5ae","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.3.1.tgz","integrity":"sha512-Em+Q6HJcTuqjJkamuExZudNYyXYh1c9aFUlyah4qGMao2BpXyopzNDNX5BTM8QVR9a0VB/fwAvVFuB9eo9Xq6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzZmHYdtpW0NxpRu+eRBO/r/yrzori0q9n9ja2HqXZ0AiEA4ayB2bnp6qbq+3kZ9asMAmFVCBoBu5XnKETwf2dH0F8="}]}},"0.3.2":{"name":"zongji","version":"0.3.2","description":"A mysql binlog listener running on Node.js","main":"index.js","engines":{"node":"0.10"},"directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.0"},"dependencies":{"mysql":"~2.5.5"},"gitHead":"ae5df5bb905eddc3196c813755169c137a3225bc","_id":"zongji@0.3.2","_shasum":"c4e6c8bdb32b9a13f440cfd341336575427b098a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"c4e6c8bdb32b9a13f440cfd341336575427b098a","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.3.2.tgz","integrity":"sha512-netOBL+oMs+fZLWviIOw95zQSWZSyKG/rNu11yJuS5tKTZoz1vU08qmVfeHd22gH4yfdA8irOaCFzOxROBOOvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsKTp7GgzhfHUkgj3EzdjXLmU7gEnvUdWRmH1ebVsbfAIgf5M1Qz7z5i28TW2Q3Q1UDZ+q7voso9uNnrB78/WXmko="}]}},"0.4.0":{"name":"zongji","version":"0.4.0","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"https://github.com/nevill/zongji"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"~2.10.2"},"gitHead":"104e730db87d161dc4975cb624bc0559e9014e41","_id":"zongji@0.4.0","_shasum":"3dfededc9c3b51dc190dd845e6c3097c974ba6f4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"3dfededc9c3b51dc190dd845e6c3097c974ba6f4","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.0.tgz","integrity":"sha512-K404r/QXBH8PNRMK7ByQ4Y/e5PtgezInzGiQg5JwZMJ6wQGsQ17SIQaFLmkhgl3BjcOA84gT3xs2RkUl7RR8ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrXc/Q/s0CevwAvlBwXQ3nMXQYDiTAvqNW5zEsPD1O6wIgbwJpFSazZmF9DnOvzXwFPpQBZVlDzfuXQznPYPFX3G4="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/zongji-0.4.0.tgz_1457347273265_0.34082829183898866"}},"0.4.1":{"name":"zongji","version":"0.4.1","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"~2.10.2"},"gitHead":"0f453ec3cf45baa5034d2d50bf804b6434b4bc2d","_id":"zongji@0.4.1","_shasum":"f64e572700700732ea45e9b5c76026167ea20ddb","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"f64e572700700732ea45e9b5c76026167ea20ddb","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.1.tgz","integrity":"sha512-37Ovv7+3ZWa0nAOxjJZCOVWFbaRIXHpEH5cxN4NhBcqfg5fTEY1b+naG+v+x+DGh2BLWG4J7JE+WfDxdKeKM8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKeDuNCWv+yH7pILhRZZabvLnLnfmFIEyf6QsDMP/FrgIgDbGxyQNNWY6CyMVcgs3M2fy9VqOPiqXHaDnl5LrTyx8="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/zongji-0.4.1.tgz_1459128400511_0.8063973397947848"}},"0.4.2":{"name":"zongji","version":"0.4.2","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"~2.10.2"},"gitHead":"d4aa991fd44b1f88f3f0a98b823b50ad6257d107","_id":"zongji@0.4.2","_shasum":"ca19ddfc2a3c9291b60f8175e068cdae0ba01cc1","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"ca19ddfc2a3c9291b60f8175e068cdae0ba01cc1","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.2.tgz","integrity":"sha512-nDxlaevHxPRmrc504gOfqeTpTcn2MOyfWGEgPZUXMg01+HtTZqkflBHNDEWc7kEWXkssGJVUKh7hyQPJKgzvWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdZnCPHI3z4qiCf+C/lcPxhqH1qJF5+PU7iLyvsbF36QIgSU8uTYt4lRykAt+X4FzEByOdyXM/VCoQTisotddTyGE="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/zongji-0.4.2.tgz_1461162736854_0.4838409691583365"}},"0.4.3":{"name":"zongji","version":"0.4.3","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"~2.10.2"},"gitHead":"73f18664ba6c975070373907e139ecc17d98a346","_id":"zongji@0.4.3","_shasum":"5ddb4fcc347c9aeed9fcc0bb0b801d91245b4258","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"5ddb4fcc347c9aeed9fcc0bb0b801d91245b4258","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.3.tgz","integrity":"sha512-5/e6j0RaU3PUQWVPAQ6Y7lspeGIT7RoNlD7s6yZUy78JMMr3gwHUcUlDJl1JvOCImMjGFhCGIjsEZGmFGJKpFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq2GUmLz9h6z2SlEaH6AeffHN1XfEBoZ0LDDOHyWcstAIgSPZO1qtKmEtnCcpQ/vEQRTD0i4Ns0NdPuq5hGWzQZic="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/zongji-0.4.3.tgz_1469680427505_0.836317595327273"}},"0.4.4":{"name":"zongji","version":"0.4.4","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test"},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"~2.12.0"},"gitHead":"841ea678bd8e2d811bc152a6033f167469ca4daa","_id":"zongji@0.4.4","_shasum":"e5a97769b64ad60efa4d9b79835bb534c645c767","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"shasum":"e5a97769b64ad60efa4d9b79835bb534c645c767","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.4.tgz","integrity":"sha512-019CZyALu4vYhvlSl4fWNFjttNYYo9zQYW9BZ6V2V0OwutBUseUfpuPRg/92vEyVN/anh02TaGCw+7jklikbaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNf9ltfmFPaLb58EIWfAOkUd+/UQaXBXnvNcjMNmJ2SAiEAqd2emgElld977FrUR7Nk89cVhgWqj/oDh6hsKA1kqCw="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/zongji-0.4.4.tgz_1484812139764_0.6938890945166349"}},"0.4.5":{"name":"zongji","version":"0.4.5","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"},{"name":"rfanth","email":"rfa@rfanth.com","url":"https://github.com/rfanth"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"eslint":"2.13.1","nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"2.15.0"},"gitHead":"a519af7a9b770d475b8afa578664732689c64bfb","_id":"zongji@0.4.5","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"dist":{"integrity":"sha512-vZOt61ImtPy/1GNHCoYPGJlOWoK7TOKOsHJMs51tEPgQttowPKJmfUiUaCdOKmpR3mdbwYrvsxrc7pWUarpKPA==","shasum":"6b0ff6796b5d5892e19c35b0c67991ad3c5717b4","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.5.tgz","fileCount":21,"unpackedSize":84505,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHd8UCRA9TVsSAnZWagAAWAcP/2nf9baStZkH5gxzOFMZ\nMyOVcVC/7/zC2AANy2KeHH5yBvugjHuzUhjRZPc068jN3ELzjTaFT/rwzV4D\nWI4kDXxa8jCqzw9/x4z+Onmvq6xjQ2Udy92aMX5lMSZPZ55GvB69wiJI/KV9\ntVY0Qx3pzhfagEMuW6CnA+9rSOihuFTFKImWnBCO4isnIwfbEUjan6kTTCZM\niH7MPZ34SUx0pXOYbw3Ap8Dbq3UiBMDPNPBzur+rEJw4X5luPPANiAl0HwQ4\n4nalGtoa4I2orPwouk+OmgBYzyM8cRRduAJj14Xhnu3vEwLK+diCRgzpsyGV\nsYni6lI3ZPojP+7eFIfy1B/B8XsIGCUQppytr2nc/efwyS6Vu4ds5bZsZ19b\njTskCU3RDQuRehc4SkN83QO2Yu0y0wQ3+Tc1USgxUCUly9CQYnswXupUAgPv\nVNZIx0lAdIDqGQSrIpCJbFBzlyuiH5AKqSsPnshEGb0+rv088SomDrXCaap+\n2kzUsj2HhkQWtyEPmWauGzRb4RRZfqFKV5rNZNvqhWNxLLN8oRVnpjgb419K\nui0RMo11TDoUzq2Rcb6WfjBqNy6R/t3OEShawpRMshEgdjxSYMQ9Zi/HOupa\nJH2rrUqKlv2A8AALQuXAM7MElgA24RrrCKc/rAoByEoZQV8+Xs1EiCIFoisw\nmirp\r\n=8FYV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXUWKekZZ/HFtZNJET+kYlVKdsDduITEE20OXD+WZozQIhAPyeEbJYQnBDquQLD/KD5rUZyUrVQoybKk33taC2Ay5M"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zongji_0.4.5_1528684306531_0.9282208527799454"},"_hasShrinkwrap":false},"0.4.6":{"name":"zongji","version":"0.4.6","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"},{"name":"rfanth","email":"rfa@rfanth.com","url":"https://github.com/rfanth"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"eslint":"2.13.1","nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"2.15.0"},"gitHead":"b528e18b50a7ac067379f414e17d9f4f9134dcb7","_id":"zongji@0.4.6","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"dist":{"integrity":"sha512-vrB3AjOr0zsZGV5iqI6GGT5zf7C3iO7EBk20RQO6lDg6pc/Dn6fylygFcBEUSxgnjnRKVFndIwtFAi/OjyYxFw==","shasum":"8ad8926961c2705d0805cd2568caf0a458e7f051","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.6.tgz","fileCount":21,"unpackedSize":84502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUww2CRA9TVsSAnZWagAAdi0P/iuSqbsfaRDjdjrI3rbr\nBKncKRCjc3AKU1Nmfkgs/5/HQK+3xRkatie0C4xaEdW5tDpO6nB28cGcAl0w\nt2Kgm7vET7LlJACiYWnD6RKce9PQdxaSs5mUkzxnG3Cfe044+1k7AP7yofSY\nBgN5S6D7LYn4fE7bwueaPQz59mCPwJjzWS4aBYrQ2IjuigU3eJw7LabtWh2y\nC/YpzczjgaywJxpPeWUsMuFI6hg3LI/GA2tqr4PJyGxRfQ4YIb7vwxSWLK8L\nzwxjqZof5C3Wbv/UHdYwnRxyTYQawSiHu1Wvc2Y7G4Vq45ZKEGgzVD5fG/IJ\nsQXIP6BS0RyC4KXkxRBiOMDOKoNyTRm/L+67fD7qsSYowGpthJqG77OOYZgG\nCNaUDUXVJm5QF7QnrRQNpecYaAX52SPo2LUGUg76o78PMdYYhjDhTcvYDWd1\nDPg4T0rV5YCdrccbSB4TUa1yigNkIs7JsEEuCDJMjLsVEma8roRU1TddrcPu\nBujNVAGyKKPxvFzgj1WaLVutDdtg3Uq7+USqg/W1x2XgPXdKjOm7X5E32Xuj\nZLqHuV+pZqD+foNQXC9jgViWfmcCplsP95K2Fzr7zceBc8w6b6HVzgLhb6cO\njqwrd8SxW8fTO+VblBIhpQyIY8yIh6dNBS+EnNepG72g6hNbLPeheEvLKHQ7\nUlsl\r\n=HIyk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1HknBvLtZ3dPywTQk5/GYkLI+nbkcq1Js7yCFoM4tNwIgc7rzFVvUwGJbjsWobcilagC6jNPXV6MNHMB6OimYPf8="}]},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zongji_0.4.6_1532169270805_0.30877597594747974"},"_hasShrinkwrap":false},"0.4.7":{"name":"zongji","version":"0.4.7","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"nodeunit --reporter=minimal test","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"},{"name":"rfanth","email":"rfa@rfanth.com","url":"https://github.com/rfanth"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","devDependencies":{"eslint":"2.13.1","nodeunit":"~0.9.1"},"dependencies":{"iconv-lite":"^0.4.13","mysql":"2.15.0"},"gitHead":"6386d7e4918575737526035ebcb695ef83141f47","_id":"zongji@0.4.7","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"dist":{"integrity":"sha512-T80gd667UShbqrSqkXtQ7uAMQfN/DoLYRolCscYV4YLXYyEYhNg/Z1T7c2+JKqjLh6nU5a+ouTKhtkKZuGfdpA==","shasum":"4a0660a502488d43d0baef840d083f079ffe1a01","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.4.7.tgz","fileCount":21,"unpackedSize":84517,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9meKCRA9TVsSAnZWagAA4bUP/Ax7H8Xdo9sAsCpsVEEo\nz6oiA4Q7CMbM3iqzsw1NJvtl5W37sFDiMpt3vYz3rztOHWdkPC7PxQ8C0xPh\nBOcluKMeqFbjBb3qGIRcOaboVxBsxf6e13v7PGLIZw6tucVess7xGrm3NrQ7\nAIiWdwFfsUNJxOMEEx4GcAOyn3ukfn/Go6D/FJ2b/w+g2v0ZScWMVP03S3TX\n0xpbKpS7ayGmBfq7H4LWT33upUDFiO4Rzpaov/8bt0Og2gFy66Iva4rxIX01\n0HUO3eO/ZeRMNIZF6e5yIK27sJlZogEI6Sbwa9crJ1j1P7e5GCNyhKT3sYgG\nH+FWcYupoAqnG1kRyotJjwvoYo0LWj3zCXAM4ZihkUDtduUk1NvVw23JnSPo\nlYv8erUZGTPnJ5lsd1dA0hYy1vMCL1P2RaFFKKCgV6HMiBRBLsWWYikbjX5T\nhr9IR88k+5YN+40ShjTPBWSKrm597g8Bq9ZGuYbu+r7w6kXJwUlAUwplpUBt\nN4a6BurazyZqjYk6ZcJaRMvTcExa4z0D0yI4fuj3hT/f+ABNUgMqR7Irv/eX\nQxDic8cL5lRSoPMWIai9HX9vrYAObYkWoGNhwthnM3dR6lJR7Clm+kXBqeu6\nR8rwrwy6EtSghY5oAkxytr9IiImVr9RIWddVCkJ81jUqjTeuBoHE5AyMZtIf\n9VPM\r\n=55dW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6iysxgpFv6ZmN0WGL9tW40+z2KzlzPVehe0Nu2X7ujwIgJv4EywtEERmUSnIkujtUURSYhilMKqlox97yOGgXVas="}]},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zongji_0.4.7_1542875018023_0.8372494718832224"},"_hasShrinkwrap":false},"0.5.0":{"name":"zongji","version":"0.5.0","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap --bail --no-coverage --jobs=1 test/*.js","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"},{"name":"rfanth","email":"rfa@rfanth.com","url":"https://github.com/rfanth"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","engines":{"node":">= 8.0"},"devDependencies":{"eslint":"6.5.1","tap":"14.8.2"},"dependencies":{"big-integer":"1.6.47","iconv-lite":"0.4.24","mysql":"2.17.1"},"gitHead":"9bd02a906131b9317221ec209ca0667878a0a66f","_id":"zongji@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.2","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"dist":{"integrity":"sha512-ZxVTcW9jwfv5+VZDbPko2e9NHDZMxpqXJP4z9WAQXyBWg42ECw6ygkMjoTcfruo1SGLcKsmNACEGlYjrgpgZFw==","shasum":"bcebb9757693c98be4f43b6510aa1ab2826cdec3","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.5.0.tgz","fileCount":20,"unpackedSize":85396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwZTRCRA9TVsSAnZWagAALCwP/R1Ooo1wAWMN2P/fvgau\npO5GOnSaauq5NbYW0np6BW3G8ccaOrRujkXy5rpsUfva3fXr7eHFtUEtaxkt\nI/3cyaT8y99cxVRuH5wQswkuQsTJ2Sgr7ARcK0sYEdPLuHvyu5RD2XK2uqa0\n7iQeRjxREvHRVJKfOo+dq2t+y7QLnZ9ZxbMVCQKWw83TzANIs5Qm9YQFiMTy\n7+LdqiVoWRiaafHEnEG3tIyLgZCFITgxu6uf9strv1phvA4YbHdfeCJV08f4\nwruToq4r6peRCZvQt8x2FuzbPdjxEoR0+NZYNu26TNzjFFdoHnYTVm1Ueyqq\nSqSKm6RMoOY26zUxIwktM0AU20CAcuHH1PJjkshog4zvg4lTnSb6VAgHNKf3\nwE3lC4FS00Rp4FPumEYNTnW7Ob4BuHkEY7YnyH2HdkJFjb/mOuBB5pwlIRBm\ncdkYkWDNlSF4BJh9MYwUH+ofB3G/cmxQj79URg1fo2m6N+WYARPUZaHuK0SF\naZHvJ57bZH/dctRxFggNEETbXHJXh7+v1uUwTbsSLNLG13mcXMqMLHqn4+Eu\nd4RCBONgFoWdzVF8RFlipObvo8Zor7YrFgQHWqTZoKF4A6cJecLTfAN3Z1Jy\nrsbDftV1B1ihJ8ADzVtpf7kL6VMP2TQ8FcHuTg7BhckXvRUS5lt5Xw/hvi6o\nxeLD\r\n=ZsX0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHyOWY6l1W/9sxskPHGhXfkMCTYoQil25Oo9SPDhX21QIgUmrOH2Cjv1ns59wyPIN4Agqz5Nxix0DhjMyQxYbyiKI="}]},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zongji_0.5.0_1572967632730_0.2412352068513779"},"_hasShrinkwrap":false},"0.5.1":{"name":"zongji","version":"0.5.1","description":"A mysql binlog listener running on Node.js","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap --bail --no-coverage --jobs=1 test/*.js","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"keywords":["mysql","binlog"],"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"},{"name":"rfanth","email":"rfa@rfanth.com","url":"https://github.com/rfanth"}],"license":"MIT","bugs":{"url":"https://github.com/nevill/zongji/issues"},"homepage":"https://github.com/nevill/zongji","engines":{"node":">= 8.0"},"devDependencies":{"eslint":"6.5.1","tap":"14.8.2"},"dependencies":{"big-integer":"1.6.47","iconv-lite":"0.4.24","mysql":"2.17.1"},"gitHead":"82af34246261730748ec357fda2e6b10fdfd4e86","_id":"zongji@0.5.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.2","_npmUser":{"name":"nevill","email":"nevill.dutt@gmail.com"},"dist":{"integrity":"sha512-KBRV2iMxMDStQcHIelJDsYrhYqH7Lp8EjwWa4z0huuL9TVY6r/m9iAo3O2slvwdfv+YjrAGjeARKVeLqNPcIWA==","shasum":"eb7187416772c786b263bded6d43231f0fcdf1e8","tarball":"https://registry.npmjs.org/zongji/-/zongji-0.5.1.tgz","fileCount":20,"unpackedSize":86592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxaL8CRA9TVsSAnZWagAApsUP/jAwfi2hfNGczMDJEQau\n9x4lKxgoveaN/3ugcHqHIJuZYqkU1B+2/tZfAMYLBftL7UKHWIc3XbIXnXdV\n4yX/ST+UXtAULI/qociUJDyes2py7y205zD9prAPpFFPoQwTPGKtbcOM8UuF\n/G6Dtbx3FDVwnrrRbD2Wf3cbKvViFdK9RkoBhlyXjKIpsBi8mthS1RMbqHFo\n/OUdJDJbeRPbwbfOhjci1fsy8hKF6/LnLCqiERwNl2zps1P41ekxoVkCOemZ\nslfvyPgVZgZf6Kczp067yxuR4VrttFKvJzrkUFP1GUzcZ+owkqzVoagOyMRt\nZJwlEWwwSjtb0P2g/p9WeAtJlsleG7dHvWvahFmD5e7jyPUP+z7MBfa3VJHf\nzQSZSAmLh73LMJu4NBb3Pr+sr+tuPN0IRnKA2+6Ozd9RuyyIKjDDC550CPPU\nkPkOJsWIb4Fdpixp4iTTDWiHL32zpAcnHrhBTxt10WVgFfjwTkp2+UpT8LDK\nprC6KRUBn6ue53bqB54Ne6lQzv1U0nhkq2rW5bDLGwmwWl8VfgxqcOOZe3s5\nfv77MHCWMFbMG2LHD4CCJ3Q/ViKbphhpcejh/Zvwuur+Uvq6tNHjxrBqEsBy\n14ghZ5zO1GVLOtL51cAwPhMxio5KzoFCMwWIplmJpAu3aQY/Yk7fW2MTbyrg\nd5tb\r\n=XtNp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh+m/VOBAhZpNBxG4ocA7SYENR3NWQGb542H5tsTpfjwIhAJYEbNNd0PMCvD3KeZVZ/Ql4esTN22PVxW1p+rVO/eC/"}]},"maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zongji_0.5.1_1573233403589_0.2900497381754683"},"_hasShrinkwrap":false}},"readme":"# ZongJi [![Build Status](https://travis-ci.org/nevill/zongji.svg?branch=master)](https://travis-ci.org/nevill/zongji)\nA MySQL binlog listener running on Node.js.\n\nZongJi (踪迹) is pronounced as `zōng jì` in Chinese.\n\nThis package is a pure JS implementation based on [`mysql`](https://github.com/mysqljs/mysql). It has been tested to work in MySQL 5.5, 5.6, and 5.7.\n\n# Latest Release\n\nThe latest release is v0.5.0, only supports Node.js from v8.\n\nv0.4.7 is the last release which supports Node.js v4.x.\n\n## Quick Start\n\n```javascript\nlet zongji = new ZongJi({ /* ... MySQL Connection Settings ... */ });\n\n// Each change to the replication log results in an event\nzongji.on('binlog', function(evt) {\n  evt.dump();\n});\n\n// Binlog must be started, optionally pass in filters\nzongji.start({\n  includeEvents: ['tablemap', 'writerows', 'updaterows', 'deleterows']\n});\n```\n\nFor a complete implementation see [`example.js`](example.js)...\n\n## Installation\n\n* Requires Node.js v8+\n\n  ```bash\n  $ npm install zongji\n  ```\n\n* Enable MySQL binlog in `my.cnf`, restart MySQL server after making the changes.\n  > From [MySQL 5.6](https://dev.mysql.com/doc/refman/5.6/en/replication-options-binary-log.html), binlog checksum is enabled by default. Zongji can work with it, but it doesn't really verify it.\n\n  ```\n  # Must be unique integer from 1-2^32\n  server-id        = 1\n  # Row format required for ZongJi\n  binlog_format    = row\n  # Directory must exist. This path works for Linux. Other OS may require\n  #   different path.\n  log_bin          = /var/log/mysql/mysql-bin.log\n\n  binlog_do_db     = employees   # Optional, limit which databases to log\n  expire_logs_days = 10          # Optional, purge old logs\n  max_binlog_size  = 100M        # Optional, limit log size\n  ```\n* Create an account with replication privileges, e.g. given privileges to account `zongji` (or any account that you use to read binary logs)\n\n  ```sql\n  GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'zongji'@'localhost'\n  ```\n\n## ZongJi Class\n\nThe `ZongJi` constructor accepts one argument of either:\n\n* An object containing MySQL connection details in the same format as used by [package mysql](https://npm.im/mysql)\n* Or, a [mysql](https://npm.im/mysql) `Connection` or `Pool` object that will be used for querying column information.\n\nIf a `Connection` or `Pool` object is passed to the constructor, it will not be destroyed/ended by Zongji's `stop()` method.\n\nIf there is a `dateStrings` `mysql` configuration option in the connection details or connection, `ZongJi` will follow it.\n\nEach instance includes the following methods:\n\nMethod Name | Arguments | Description\n------------|-----------|------------------------\n`start`     | `options` | Start receiving replication events, see options listed below\n`stop`      | *None*    | Disconnect from MySQL server, stop receiving events\n`on`        | `eventName`, `handler` | Add a listener to the `binlog` or `error` event. Each handler function accepts one argument.\n\nSome events can be emitted in different phases:\n\nEvent Name | Description\n-----------|------------------------\n`ready`    | This event is occurred right after ZongJi successfully established a connection, setup slave status, and set binlog position.\n`binlog`   | Once a binlog is received and passes the filter, it will bubble up with this event.\n`error`    | Every error will be caught by this event.\n`stopped`  | Emitted when ZongJi connection is stopped (ZongJi#stop is called).\n\n**Options available:**\n\nOption Name | Type | Description\n------------|------|-------------------------------\n`serverId`  | `integer` | [Unique number (1 - 2<sup>32</sup>)](http://dev.mysql.com/doc/refman/5.0/en/replication-options.html#option_mysqld_server-id) to identify this replication slave instance. Must be specified if running more than one instance of ZongJi. Must be used in `start()` method for effect.<br>**Default:** `1`\n`startAtEnd` | `boolean` | Pass `true` to only emit binlog events that occur after ZongJi's instantiation. Must be used in `start()` method for effect.<br>**Default:** `false`\n`filename` | `string` | Begin reading events from this binlog file. If specified together with `position`, will take precedence over `startAtEnd`.\n`position` | `integer` | Begin reading events from this position. Must be included with `filename`.\n`includeEvents` | `[string]` | Array of event names to include<br>**Example:** `['writerows', 'updaterows', 'deleterows']`\n`excludeEvents` | `[string]` | Array of event names to exclude<br>**Example:** `['rotate', 'tablemap']`\n`includeSchema` | `object` | Object describing which databases and tables to include (Only for row events). Use database names as the key and pass an array of table names or `true` (for the entire database).<br>**Example:** ```{ 'my_database': ['allow_table', 'another_table'], 'another_db': true }```\n`excludeSchema` | `object` | Object describing which databases and tables to exclude (Same format as `includeSchema`)<br>**Example:** ```{ 'other_db': ['disallowed_table'], 'ex_db': true }```\n\n* By default, all events and schema are emitted.\n* `excludeSchema` and `excludeEvents` take precedence over `includeSchema` and `includeEvents`, respectively.\n\n**Supported Binlog Events:**\n\nEvent name  | Description\n------------|---------------\n`unknown`   | Catch any other events\n`query`     | [Insert/Update/Delete Query](http://dev.mysql.com/doc/internals/en/query-event.html)\n`intvar`    | [Autoincrement and LAST_INSERT_ID](https://dev.mysql.com/doc/internals/en/intvar-event.html)\n`rotate`    | [New Binlog file](http://dev.mysql.com/doc/internals/en/rotate-event.html) Not required to be included to rotate to new files, but it is required to be included in order to keep the `filename` and `position` properties updated with current values for [graceful restarting on errors](https://gist.github.com/numtel/5b37b2a7f47b380c1a099596c6f3db2f).\n`format`    | [Format Description](http://dev.mysql.com/doc/internals/en/format-description-event.html)\n`xid`       | [Transaction ID](http://dev.mysql.com/doc/internals/en/xid-event.html)\n`tablemap`  | Before any row event (must be included for any other row events)\n`writerows` | Rows inserted, row data array available as `rows` property on event object\n`updaterows` | Rows changed, row data array available as `rows` property on event object\n`deleterows` | Rows deleted, row data array available as `rows` property on event object\n\n**Event Methods**\n\nNeither method requires any arguments.\n\nName   | Description\n-------|---------------------------\n`dump` | Log a description of the event to the console\n`getEventName` | Return the name of the event\n\n## Important Notes\n\n* :star2: [All types allowed by `mysql`](https://github.com/mysqljs/mysql#type-casting) are supported by this package.\n* :speak_no_evil: 64-bit integer is supported via package big-integer(see #108). If an integer is within the safe range of JS number (-2^53, 2^53), a Number object will returned, otherwise, will return as String.\n* :point_right: `TRUNCATE` statement does not cause corresponding `DeleteRows` event. Use unqualified `DELETE FROM` for same effect.\n* When using fractional seconds with `DATETIME` and `TIMESTAMP` data types in MySQL > 5.6.4, only millisecond precision is available due to the limit of Javascript's `Date` object.\n\n## Run Tests\n\n* install [Docker](https://www.docker.com/community-edition#download)\n* run `docker-compose up` and then `./docker-test.sh`\n\n## Reference\n\nI learnt many things from following resources while making ZongJi.\n\n* https://github.com/mysqljs/mysql\n* https://github.com/felixge/faster-than-c/\n* http://intuitive-search.blogspot.co.uk/2011/07/binary-log-api-and-replication-listener.html\n* https://github.com/Sannis/node-mysql-libmysqlclient\n* https://kkaefer.com/node-cpp-modules/\n* http://dev.mysql.com/doc/internals/en/replication-protocol.html\n* http://www.cs.wichita.edu/~chang/lecture/cs742/program/how-mysql-c-api.html\n* https://github.com/jeremycole/mysql_binlog (Ruby implemenation of MySQL binlog parser)\n* http://dev.mysql.com/doc/internals/en/date-and-time-data-type-representation.html\n\n## License\nMIT\n","maintainers":[{"name":"nevill","email":"nevill.dutt@gmail.com"}],"time":{"modified":"2022-06-29T17:49:31.742Z","created":"2013-12-03T14:01:21.511Z","0.1.0":"2013-12-03T14:01:30.286Z","0.1.1":"2013-12-12T14:59:38.217Z","0.1.2":"2014-03-26T02:52:54.442Z","0.2.0":"2014-03-27T10:15:49.863Z","0.2.1":"2015-02-01T12:14:51.654Z","0.3.0":"2015-02-01T12:20:57.427Z","0.3.1":"2015-02-26T18:31:44.191Z","0.3.2":"2015-03-03T12:20:03.778Z","0.4.0":"2016-03-07T10:41:14.773Z","0.4.1":"2016-03-28T01:26:40.902Z","0.4.2":"2016-04-20T14:32:19.249Z","0.4.3":"2016-07-28T04:33:51.441Z","0.4.4":"2017-01-19T07:49:01.618Z","0.4.5":"2018-06-11T02:31:46.618Z","0.4.6":"2018-07-21T10:34:30.906Z","0.4.7":"2018-11-22T08:23:38.150Z","0.5.0":"2019-11-05T15:27:12.916Z","0.5.1":"2019-11-08T17:16:43.731Z"},"author":{"name":"Nevill","email":"nevill.dutt@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/nevill/zongji.git"},"homepage":"https://github.com/nevill/zongji","keywords":["mysql","binlog"],"bugs":{"url":"https://github.com/nevill/zongji/issues"},"license":"MIT","readmeFilename":"README.md","users":{"lwille":true,"mjurincic":true,"waylonflinn":true,"bangbang93":true,"uqualifi":true},"contributors":[{"name":"numtel","email":"ben@latenightsketches.com","url":"https://github.com/numtel"},{"name":"rfanth","email":"rfa@rfanth.com","url":"https://github.com/rfanth"}]}