$ npm i egg-dmdb --save
// {app_root}/config/plugin.js
exports.dmdb = {
enable: true,
package: 'egg-dmdb',
};
// {app_root}/config/config.default.js
exports.dmdb = {
};
see config/config.default.js for more detail.
const rows = await this.app.dmdb.query('SELECT * FROM TABLE1 limit 0,3');
console.log(rows);
Please open an issue here.