mysql-simple-query
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -63,3 +63,7 @@ const dbQuery = require('./util/dbQuery'); | ||
whereBetween(key, array) { | ||
whereBetween(key, array, condition) { | ||
if (condition) { | ||
this.whereLikeCondition = condition; | ||
} | ||
this.whereBetweenStatement[key] = array; | ||
@@ -93,4 +97,10 @@ } | ||
parseWhereBetween() { | ||
let whereInStatementUsed = false; | ||
if (!isEmpty(this.whereInStatement)) { | ||
whereInStatementUsed = true; | ||
} | ||
if (!isEmpty(this.whereBetweenStatement)) { | ||
return dbQuery.parseWhereBetween(this.whereBetweenStatement, this.whereConditionUsed); | ||
return dbQuery.parseWhereBetween(this.whereBetweenStatement, whereInStatementUsed); | ||
} | ||
@@ -97,0 +107,0 @@ |
{ | ||
"name": "mysql-simple-query", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"description": "Simple query wrapper for mysql-promise to make querying, inserting, updating, and deleting easier for developers.", | ||
@@ -5,0 +5,0 @@ "main": "mysqlSimpleQuery.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33153
849