mina-mysql-manager
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -29,6 +29,6 @@ (function() { | ||
this.client.on('error', this.error); | ||
this.drainDefense = false; | ||
} | ||
InstantConnect.prototype.end = function() { | ||
LOGGER.log('Mysql Connection Finish'); | ||
return this.drain(); | ||
@@ -78,5 +78,16 @@ }; | ||
InstantConnect.prototype.drain = function() { | ||
return this.client.end(); | ||
if (!this.drainDefense) { | ||
LOGGER.log('Mysql Connection Finish'); | ||
return this.client.end(); | ||
} | ||
}; | ||
InstantConnect.prototype.queryOnlyReady = function() { | ||
return this.drainDefense = true; | ||
}; | ||
InstantConnect.prototype.queryOnlyEnd = function() { | ||
return this.drainDefense = false; | ||
}; | ||
return InstantConnect; | ||
@@ -83,0 +94,0 @@ |
{ | ||
"name": "mina-mysql-manager", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Very Simply Managing mysql and mariadb with pool and query of xml like ibatis or mybatis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
12685
303