Closed Crysis419 closed 6 years ago
You can add more watchers by calling mysqlEventWatcher.add(...);
again
for example:
mysqlEventWatcher.add(
'database.table1',
eventCallback
);
mysqlEventWatcher.add(
'database.table2',
eventCallback
);
can someone explain how it works?
@iviewproject The .add()
call pushes the table name and callback function onto a stack.
https://github.com/spencerlambert/mysql-events/blob/master/index.js#L76-L93
That's how it works.
Hi guys, Happy New Year 2018
Can i listen multi table with MysqlEvent ?
let watcher =mysqlEventWatcher.add( 'database.tablesname', ...
I would add a second tables , how to do this ?
thx