egg-dmdb
v1.0.6
Published
eggjs达梦数据库操作插件
Downloads
1
Maintainers
Readme
egg-dmdb
Install
$ npm i egg-dmdb --save
Usage
// {app_root}/config/plugin.js
exports.dmdb = {
enable: true,
package: 'egg-dmdb',
};
Configuration
// {app_root}/config/config.default.js
exports.dmdb = {
};
see config/config.default.js for more detail.
Example
const rows = await this.app.dmdb.query('SELECT * FROM TABLE1 WHERE A=? and B=?',['x','y']);
console.log(rows);
Questions & Suggestions
Please open an issue here.