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

Commit 0e82a72a by Mick Hansen

Remove sqlite specific method

1 parent ba299865
...@@ -3,7 +3,7 @@ var AbstractDialect = function() { ...@@ -3,7 +3,7 @@ var AbstractDialect = function() {
} }
AbstractDialect.prototype.supports = { AbstractDialect.prototype.supports = {
'RETURNING *': false 'RETURNING': false
} }
module.exports = AbstractDialect module.exports = AbstractDialect
\ No newline at end of file
...@@ -202,26 +202,6 @@ module.exports = (function() { ...@@ -202,26 +202,6 @@ module.exports = (function() {
return Utils._.template(query)(replacements) return Utils._.template(query)(replacements)
}, },
updateQuery: function(tableName, attrValueHash, where, options) {
attrValueHash = Utils.removeNullValuesFromHash(attrValueHash, this.options.omitNull, options)
var query = "UPDATE <%= table %> SET <%= values %> WHERE <%= where %>"
, values = []
for (var key in attrValueHash) {
var value = attrValueHash[key]
values.push(this.quoteIdentifier(key) + "=" + this.escape(value))
}
var replacements = {
table: this.quoteIdentifier(tableName),
values: values.join(","),
where: this.getWhereConditions(where)
}
return Utils._.template(query)(replacements)
},
deleteQuery: function(tableName, where, options) { deleteQuery: function(tableName, where, options) {
options = options || {} options = options || {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!