MCPcopy
hub / github.com/sequelize/sequelize / dropTable

Method dropTable

lib/dialects/abstract/query-interface.js:236–244  ·  lib/dialects/abstract/query-interface.js::QueryInterface.dropTable

* Drop a table from database * * @param {string} tableName Table name to drop * @param {object} options Query options * * @returns {Promise}

(tableName, options)

Source from the content-addressed store, hash-verified

234 * @returns {Promise}
235 */
236 async dropTable(tableName, options) {
237 class="cm">// if we're forcing we should be cascading unless explicitly stated otherwise
238 options = { ...options };
239 options.cascade = options.cascade || options.force || false;
240
241 const sql = this.queryGenerator.dropTableQuery(tableName, options);
242
243 await this.sequelize.query(sql, options);
244 }
245
246 async _dropAllTables(tableNames, skip, options) {
247 for (const tableName of tableNames) {

Callers 6

_dropAllTablesMethod · 0.95
testFunction · 0.45
dropMethod · 0.45
model.test.jsFile · 0.45

Calls 2

dropTableQueryMethod · 0.45
queryMethod · 0.45

Tested by 1

testFunction · 0.36