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

node-querybuilder

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-querybuilder - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

2

drivers/mysql/query_exec.js

@@ -163,3 +163,3 @@ // ****************************************************************************

if (sql.length > 0) {
if (sqls.length > 0) {
setTimeout(next_batch,0);

@@ -166,0 +166,0 @@ } else {

{
"name": "node-querybuilder",
"version": "0.13.0",
"version": "0.14.0",
"author": "Kyle Farris <kyle@chomponllc.com>",

@@ -5,0 +5,0 @@ "description": "Modeled after Codeigniter's QueryBuilder. Build and execute queries in a safe and database-agnostic way.",

@@ -22,3 +22,3 @@ var should = require('chai').should();

expect(function() { qb.like(''); }, 'empty string provided').to.throw(Error);
expect(function() { qb.like('planet_name','ear','after'); }, 'valid string').to.not.throw(Error);

@@ -38,3 +38,3 @@ expect(function() { qb.like({planet_name: 'ear'}); }, 'valid object').to.not.throw(Error);

expect(function() { qb.like('planet_name',Infinity);}, 'empty array provided').to.throw(Error);
expect(function() { qb.like('planet_name',false); }, 'false provided').to.not.throw(Error);

@@ -59,3 +59,3 @@ expect(function() { qb.like('planet_name',true); }, 'true provided').to.not.throw(Error);

expect(function() { qb.like('galaxy_name','milk','foo'); }, 'non-empty string provided').to.throw(Error);
expect(function() { qb.like('galaxy_name','milk'); }, 'no third param provided').to.not.throw(Error);

@@ -72,3 +72,3 @@ expect(function() { qb.like('galaxy_name','milk','right'); }, 'right as third param').to.not.throw(Error);

qb.where_array.should.eql(["`galaxy_name` LIKE 'milky%'"]);
qb.reset_query();

@@ -82,3 +82,3 @@ qb.like('galaxy_name', 'milky', 'right');

qb.where_array.should.eql(["`galaxy_name` LIKE '%milky'"]);
qb.reset_query();

@@ -92,3 +92,3 @@ qb.like('galaxy_name', 'milky', 'left');

qb.where_array.should.eql(["`galaxy_name` LIKE '%milky%'"]);
qb.reset_query();

@@ -194,2 +194,2 @@ qb.like('galaxy_name', 'milky', 'both');

});
});
});
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