dborm-mysql 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/base/db.js +2 -0
  2. package/package.json +1 -1
package/base/db.js CHANGED
@@ -8,6 +8,8 @@ let shortUuid = require('short-uuid');
8
8
  let moment = require('moment');
9
9
 
10
10
  function initMysqlPool(db, dbConfig) {
11
+ dbConfig.enableKeepAlive = true;
12
+ dbConfig.keepAliveInitialDelay = 10000; // Keep-Alive 探针间隔默认10s
11
13
  db.pool = mysql.createPool(dbConfig);
12
14
  }
13
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dborm-mysql",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "a NodeJs ORM for mysql",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",