Comparing version 0.2.1 to 0.2.2
@@ -31,2 +31,6 @@ 'use strict'; | ||
var _isEmpty = require('lodash/isEmpty'); | ||
var _isEmpty2 = _interopRequireDefault(_isEmpty); | ||
var _ToSql2 = require('./ToSql'); | ||
@@ -99,2 +103,17 @@ | ||
if (!(0, _isEmpty2.default)(o.values)) { | ||
collector.append(' SET '); | ||
collector = this.injectJoin(o.values, collector, ', '); | ||
} | ||
if (!(0, _isEmpty2.default)(o.wheres)) { | ||
collector.append(' WHERE '); | ||
collector = this.injectJoin(o.wheres, collector, ' AND '); | ||
} | ||
if (!(0, _isEmpty2.default)(o.orders)) { | ||
collector.append(' ORDER BY '); | ||
collector = this.injectJoin(o.orders, collector, ', '); | ||
} | ||
return this.maybeVisit(o.limit, collector); | ||
@@ -101,0 +120,0 @@ } |
{ | ||
"name": "arel", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "arel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
342021
90
6019