jeefo-mysql
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -162,3 +162,2 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
exec(query, values = []) { | ||
clearTimeout(this.timeout_id); | ||
return new Promise(async (resolve, reject) => { | ||
@@ -172,2 +171,3 @@ if (!this.is_connected) await this.connect(); | ||
resolve({results, fields}); | ||
clearTimeout(this.timeout_id); | ||
this.timeout_id = setTimeout(() => this.destroy(), 10000); | ||
@@ -174,0 +174,0 @@ }); |
{ | ||
"name": "jeefo-mysql", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "Very simple MySQL connection instances for each table. I had annoyed enough for MySQL Deadlocks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16356