egg-mysql-events
This is an egg plugin based on https://www.npmjs.com/package/@rodrigogs/mysql-events
Install
$ npm i egg-mysql-events --save
Usage
// {app_root}/config/plugin.jsexportsmysqlEvents = enable: true package: 'egg-mysql-events';
Configuration
// {app_root}/config/config.default.jsexportsmysqlEvents = configmysqlEvents = connection: host: '127.0.0.1' port: 3306 user: 'mysql-user' password: 'password' triggers: name: 'TEST' expression: 'db.t_projects' console
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.