iw-mysql-wrapper
Advanced tools
Comparing version 0.1.0 to 1.0.0
15
index.js
@@ -44,2 +44,17 @@ var mysql = require("mysql"), | ||
this.paramify = function (list, prefix) { | ||
var result = { | ||
values: {}, | ||
tokens: [] | ||
}; | ||
list.forEach(function (item, itemIndex) { | ||
var tokenKey = prefix + itemIndex; | ||
result.tokens.push(":" + tokenKey); | ||
result.values[tokenKey] = item; | ||
}); | ||
return result; | ||
}; | ||
this.query = function (query, args) { | ||
@@ -46,0 +61,0 @@ var start = process.hrtime(); |
{ | ||
"name": "iw-mysql-wrapper", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Internal wrapper: promises, logging, binding", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3007
59
1