1.0.6 • Published 2 years ago

egg-dmdb v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

egg-dmdb

NPM version npm download

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.

License

MIT

1.0.2

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago