im.db.js 449 B

1234567891011121314151617181920212223
  1. /**
  2. * IM数据库。
  3. */
  4. "use strict";
  5. var configFile = require('../../../include/commons').CONFIG_FILE;
  6. var config = require('../../../resources/config/' + configFile);
  7. var mysql = require('mysql');
  8. var dbUtil = require('../../../util/db.util');
  9. var pool = mysql.createPool(config.imDbConfig);
  10. class ImDb {
  11. constructor() {
  12. }
  13. static execQuery (options) {
  14. dbUtil.execQuery(pool, options);
  15. };
  16. }
  17. module.exports = ImDb;