1234567891011121314151617181920212223 |
- /**
- * IM数据库。
- */
- "use strict";
- var configFile = require('../../../include/commons').CONFIG_FILE;
- var config = require('../../../resources/config/' + configFile);
- var mysql = require('mysql');
- var dbUtil = require('../../../util/db.util');
- var pool = mysql.createPool(config.imDbConfig);
- class ImDb {
- constructor() {
- }
- static execQuery (options) {
- dbUtil.execQuery(pool, options);
- };
- }
- module.exports = ImDb;
|