iw-mysql-wrapper
Advanced tools
Comparing version
@@ -45,3 +45,3 @@ var mysql = require("mysql"), | ||
var pool = this.pool = mysql.createPool({ | ||
var pool = mysql.createPool({ | ||
host: options.hostname, | ||
@@ -57,3 +57,3 @@ user: options.username, | ||
this.queryFormat = function (query, values) { | ||
return queryFormat.call(this.pool, query, values); | ||
return queryFormat.call(pool, query, values); | ||
}; | ||
@@ -76,2 +76,6 @@ | ||
this.end = function (cb) { | ||
return pool.end(cb); | ||
}; | ||
}; | ||
@@ -78,0 +82,0 @@ |
{ | ||
"name": "iw-mysql-wrapper", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "Internal wrapper: promises, logging, binding", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3190
1.24%64
4.92%