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

Commit 61713712 by Jan Aagaard Meier

[ci skip] Mention that model.destroy returns affected rows. Closes #3822

1 parent ebb097a1
Showing with 1 additions and 1 deletions
...@@ -1448,7 +1448,7 @@ module.exports = (function() { ...@@ -1448,7 +1448,7 @@ module.exports = (function() {
* @param {Boolean} [options.cascade=false] Only used in conjuction with TRUNCATE. Truncates all tables that have foreign-key references to the named table, or to any tables added to the group due to CASCADE. * @param {Boolean} [options.cascade=false] Only used in conjuction with TRUNCATE. Truncates all tables that have foreign-key references to the named table, or to any tables added to the group due to CASCADE.
* @param {Transaction} [options.transaction] * @param {Transaction} [options.transaction]
* @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql. * @param {Function} [options.logging=false] A function that gets executed while running the query to log the sql.
* @return {Promise<undefined>} * @return {Promise<Integer>} The number of destroyed rows
*/ */
Model.prototype.destroy = function(options) { Model.prototype.destroy = function(options) {
var self = this var self = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!