不要怂,就是干,撸起袖子干!

Commit 5a1e9c57 by Sascha Depold

transaction support for increment and decrement

1 parent 8f92bf4e
Showing with 2 additions and 2 deletions
...@@ -657,9 +657,9 @@ module.exports = (function() { ...@@ -657,9 +657,9 @@ module.exports = (function() {
return queryAndEmit.call(this, [sql, factory, queryOptions], 'select') return queryAndEmit.call(this, [sql, factory, queryOptions], 'select')
} }
QueryInterface.prototype.increment = function(dao, tableName, values, identifier) { QueryInterface.prototype.increment = function(dao, tableName, values, identifier, options) {
var sql = this.QueryGenerator.incrementQuery(tableName, values, identifier); var sql = this.QueryGenerator.incrementQuery(tableName, values, identifier);
return queryAndEmit.call(this, [sql, dao], 'increment'); return queryAndEmit.call(this, [sql, dao, options], 'increment');
} }
QueryInterface.prototype.rawSelect = function(tableName, options, attributeSelector) { QueryInterface.prototype.rawSelect = function(tableName, options, attributeSelector) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!