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

Method drop

src/model.js:1447–1449  ·  view source on GitHub ↗

* 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

1445 * @returns {Promise}
1446 */
1447 static async drop(options) {
1448 return await this.queryInterface.dropTable(this.getTableName(options), options);
1449 }
1450
1451 static async dropSchema(schema) {
1452 return await this.queryInterface.dropSchema(schema);

Callers 8

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

Calls 2

getTableNameMethod · 0.95
dropTableMethod · 0.45

Tested by

no test coverage detected