mm_mysql 2.0.4 → 2.0.6

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 (4) hide show
  1. package/db.js +1 -1
  2. package/index.js +358 -1071
  3. package/package.json +1 -1
  4. package/test.js +518 -0
package/db.js CHANGED
@@ -127,7 +127,7 @@ DB.prototype.exec = async function(sql, timeout = 30000) {
127
127
  * @param {Number} timeout 超时时间(毫秒)
128
128
  * @returns {Promise<Object>} 数据库连接对象
129
129
  */
130
- DB.prototype.getConn = async function(timeout = 15000) {
130
+ DB.prototype.getConn = async function(timeout = 30000) {
131
131
  if (!this._mysql) {
132
132
  throw new Error('MySQL实例未初始化');
133
133
  }