jeefo-mysql
Advanced tools
Comparing version 0.0.52 to 0.0.53
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. | ||
* File Name : index.js | ||
* Created at : 2021-10-09 | ||
* Updated at : 2022-03-25 | ||
* Updated at : 2022-03-26 | ||
* Author : jeefo | ||
@@ -265,3 +265,5 @@ * Purpose : | ||
for (let [key, value] of Object.entries(where)) { | ||
if (Array.isArray(value)) { | ||
if (value === null) { | ||
conditions.push(`${mysql.escapeId(key)} IS NULL`); | ||
} else if (Array.isArray(value)) { | ||
const placeholders = value.map(() => '?').join(", "); | ||
@@ -268,0 +270,0 @@ values.push(...value); |
{ | ||
"name": "jeefo-mysql", | ||
"version": "0.0.52", | ||
"version": "0.0.53", | ||
"description": "Very simple MySQL connection instances for each table. I had annoyed enough for MySQL Deadlocks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11905
269