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

Commit ebec7a9f by gtelljohann Committed by Jan Aagaard Meier

[ci skip] Model#truncate - Fixing documentation formatting (#5933)

* Model#truncate - Fixing documentation formatting

* Fixing code comment
1 parent 4460c13f
Showing with 2 additions and 2 deletions
...@@ -698,7 +698,7 @@ Truncate all instances of the model. This is a convenient method for Model.destr ...@@ -698,7 +698,7 @@ Truncate all instances of the model. This is a convenient method for Model.destr
| ---- | ---- | ----------- | | ---- | ---- | ----------- |
| [options] | object | The options passed to Model.destroy in addition to truncate | | [options] | object | The options passed to Model.destroy in addition to truncate |
| [options.transaction] | Boolean | function | Transaction to run query under | | [options.transaction] | Boolean | function | Transaction to run query under |
| [options.cascade | Boolean | function | = false] Only used in conjunction 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. | | [options.cascade=false] | Boolean | function | Only used in conjunction 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. |
| [options.transaction] | Transaction | Transaction to run query under | | [options.transaction] | Transaction | Transaction to run query under |
| [options.logging] | Boolean | function | A function that logs sql queries, or false for no logging | | [options.logging] | Boolean | function | A function that logs sql queries, or false for no logging |
| [options.searchPath=DEFAULT] | String | An optional parameter to specify the schema search_path (Postgres only) | | [options.searchPath=DEFAULT] | String | An optional parameter to specify the schema search_path (Postgres only) |
......
...@@ -2253,7 +2253,7 @@ Model.prototype.bulkCreate = function(records, options) { ...@@ -2253,7 +2253,7 @@ Model.prototype.bulkCreate = function(records, options) {
* *
* @param {object} [options] The options passed to Model.destroy in addition to truncate * @param {object} [options] The options passed to Model.destroy in addition to truncate
* @param {Boolean|function} [options.transaction] Transaction to run query under * @param {Boolean|function} [options.transaction] Transaction to run query under
* @param {Boolean|function} [options.cascade = false] Only used in conjunction 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|function} [options.cascade=false] Only used in conjunction 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] Transaction to run query under * @param {Transaction} [options.transaction] Transaction to run query under
* @param {Boolean|function} [options.logging] A function that logs sql queries, or false for no logging * @param {Boolean|function} [options.logging] A function that logs sql queries, or false for no logging
* @param {Boolean} [options.benchmark=false] Pass query execution time in milliseconds as second argument to logging function (options.logging). * @param {Boolean} [options.benchmark=false] Pass query execution time in milliseconds as second argument to logging function (options.logging).
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!