Comparing version 0.1.9 to 0.1.10
@@ -136,3 +136,3 @@ module.exports=function init(MYSQL,opts){ | ||
insert(rows,done){ | ||
rows=insistArray(rows) | ||
rows=_.castArray(rows) | ||
//this way preserves col order | ||
@@ -148,3 +148,3 @@ var insertCols=fields.reduce((set,part)=>set.concat( rows[0][part] ? part : []),[]) | ||
,update(rows,done){ | ||
return db(...insistArray(rows).reduce((queries,row)=>{ | ||
return db(..._.castArray(rows).reduce((queries,row)=>{ | ||
var [pk,whereSubs]=where(row) | ||
@@ -156,3 +156,3 @@ ,tmp=_.unset(_.extend({},row),priKey) | ||
,delete(rows,done){ | ||
return db(...insistArray(rows).reduce((queries,row)=>{ | ||
return db(..._.castArray(rows).reduce((queries,row)=>{ | ||
var [pk,whereSubs]=where(row) | ||
@@ -159,0 +159,0 @@ return queries.concat([`delete from ?? where ${pk} limit 1`,[name,...whereSubs]]) |
{ | ||
"name": "dbq", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "terse node-mysql query wrapper that supports parallel + series execution", | ||
@@ -5,0 +5,0 @@ "main": "dbq.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
15118