spencerlambert / mysql-events

A node meteor package that watches a MySQL database and runs callbacks on matched events.
Other
87 stars 76 forks source link

Current binlog position #28

Open a-k-macdonald opened 7 years ago

a-k-macdonald commented 7 years ago

Hi,

I'm using

mysql-events version 0.0.8 zongji version 0.4.3

I'm wondering if there is a way to get the current binlog and position when the event fires? I thought the properties zongji.binlogName and zongji.binlogNewPosition would give this but this doesn't seem to be the case. I'd like to make sure that if the application needs to restart that I can start where it left off.

Do I have to issue a Show Master command on the server each time I see an event I'm interested in?

Any help gratefully received, Al.