spencerlambert / mysql-events

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

add settings configuration object #19

Closed jonathanargentiero closed 7 years ago

jonathanargentiero commented 7 years ago

This PR is intended to implement the possibility to override default options. I called the configuration object settings to avoid confusion with the options parameter defined in zongjiManager(dsn, options, onBinlog). Available options are described here and can be useful in many scenario.

A documentation update could be necessary to provide information about this configuration object.

jonathanargentiero commented 7 years ago

Usage example

var mysqlEventWatcher = MySQLEvents(dsn, {
  startAtEnd: false // it overrides default "true"
});
spencerlambert commented 7 years ago

This looks good. Do you mind updating the README.md file, describing this change?

jonathanargentiero commented 7 years ago

@spencerlambert done. :)