ee-query-builder
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -7,3 +7,2 @@ !function(){ | ||
, moment = require('moment') | ||
, async = require('ee-async') | ||
, Functions = require('./Functions'); | ||
@@ -43,2 +42,3 @@ | ||
this._escape = options.escape; | ||
this._type = options.type; | ||
@@ -94,3 +94,3 @@ this._functions = new Functions(options); | ||
SQLString += ' WHERE ' + (this._renderFilter(parameters, query.filter || {}) || 1); | ||
if(query.limit && !isNaN(parseInt(query.limit, 10))) SQLString += ' LIMIT ' + parseInt(query.limit, 10); | ||
@@ -122,2 +122,4 @@ if(query.offset && !isNaN(parseInt(query.offset, 10))) SQLString += ' OFFSET ' + parseInt(query.offset, 10); | ||
if (this._type === 'postgres' && query.returning) SQLString += ' RETURNING '+this._escapeId(query.returning); | ||
return {SQLString: SQLString, parameters: parameters}; | ||
@@ -124,0 +126,0 @@ } |
{ | ||
"name" : "ee-query-builder" | ||
, "description" : "query builder for ee-orm" | ||
, "version" : "0.1.3" | ||
, "version" : "0.1.4" | ||
, "homepage" : "https://github.com/eventEmitter/ee-query-builder" | ||
@@ -26,3 +26,2 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "ee-arguments" : "0.1.x" | ||
, "ee-async" : "0.1.x" | ||
, "moment" : "2.5.x" | ||
@@ -29,0 +28,0 @@ } |
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
16315
6
367
- Removedee-async@0.1.x
- Removedee-async@0.1.0(transitive)
- Removedee-error@0.1.0(transitive)