mm_mysql 2.0.5 → 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.
- package/db.js +1 -1
- package/index.js +0 -2
- package/package.json +1 -1
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 =
|
|
130
|
+
DB.prototype.getConn = async function(timeout = 30000) {
|
|
131
131
|
if (!this._mysql) {
|
|
132
132
|
throw new Error('MySQL实例未初始化');
|
|
133
133
|
}
|
package/index.js
CHANGED