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

Method _dropAllTables

src/dialects/abstract/query-interface.js:268–275  ·  view source on GitHub ↗
(tableNames, skip, options)

Source from the content-addressed store, hash-verified

266 }
267
268 async _dropAllTables(tableNames, skip, options) {
269 for (const tableName of tableNames) {
270 // if tableName is not in the Array of tables names then don't drop it
271 if (!skip.includes(tableName.tableName || tableName)) {
272 await this.dropTable(tableName, { ...options, cascade: true } );
273 }
274 }
275 }
276
277 /**
278 * Drop all tables from database

Callers 2

dropAllTablesMethod · 0.95
dropAllTablesMethod · 0.80

Calls 1

dropTableMethod · 0.95

Tested by

no test coverage detected