Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dbq

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbq - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

6

dbq.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc