MCPcopy
hub / github.com/sequelize/sequelize / drop

Method drop

lib/model.js:1396–1398  ·  lib/model.js::Model.drop

* Drop the table represented by this Model * * @param {object} [options] drop options * @param {boolean} [options.cascade=false] Also drop all objects depending on this table, such as views. Only works in postgres * @param {Function} [options.logging=false] A function that gets ex

(options)

Source from the content-addressed store, hash-verified

1394 * @returns {Promise}
1395 */
1396 static async drop(options) {
1397 return await this.queryInterface.dropTable(this.getTableName(options), options);
1398 }
1399
1400 static async dropSchema(schema) {
1401 return await this.queryInterface.dropSchema(schema);

Callers 7

syncMethod · 0.95
dropAllSchemasMethod · 0.45
dropTestSchemasFunction · 0.45
model.test.jsFile · 0.45
sequelize.test.jsFile · 0.45
smoke.test.jsFile · 0.45
sync.test.jsFile · 0.45

Calls 2

getTableNameMethod · 0.95
dropTableMethod · 0.45

Tested by

no test coverage detected