MCPcopy
hub / github.com/sequelize/sequelize / _dropAllTables

Method _dropAllTables

lib/dialects/abstract/query-interface.js:246–253  ·  view source on GitHub ↗
(tableNames, skip, options)

Source from the content-addressed store, hash-verified

244 }
245
246 async _dropAllTables(tableNames, skip, options) {
247 for (const tableName of tableNames) {
248 // if tableName is not in the Array of tables names then don't drop it
249 if (!skip.includes(tableName.tableName || tableName)) {
250 await this.dropTable(tableName, { ...options, cascade: true } );
251 }
252 }
253 }
254
255 /**
256 * Drop all tables from database

Callers 2

dropAllTablesMethod · 0.95
dropAllTablesMethod · 0.80

Calls 1

dropTableMethod · 0.95

Tested by

no test coverage detected