@kenyip/mysql
Advanced tools
+1
-1
| { | ||
| "name": "@kenyip/mysql", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "A fully featured MySql client 'mysql' with Promise support.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -54,5 +54,9 @@ "use strict"; | ||
| MySqlClass.prototype.promiseQuery = function (sql, values, options) { | ||
| if (options && options.retry) { | ||
| const retryPromise = options?.retry == false ? false : true; | ||
| if (retryPromise) { | ||
| return retry(() => this._promiseQuery(sql, values), options); | ||
| } | ||
| return this._promiseQuery(sql, values); | ||
@@ -59,0 +63,0 @@ }; |
8659
0.63%251
0.4%