MCPcopy
hub / github.com/sequelize/sequelize / dropAllSchemas

Method dropAllSchemas

lib/dialects/abstract/query-interface.js:87–95  ·  lib/dialects/abstract/query-interface.js::QueryInterface.dropAllSchemas

* Drop all schemas * * @param {object} [options] Query options * * @returns {Promise}

(options)

Source from the content-addressed store, hash-verified

85 * @returns {Promise}
86 */
87 async dropAllSchemas(options) {
88 options = options || {};
89
90 if (!this.queryGenerator._dialect.supports.schemas) {
91 return this.sequelize.drop(options);
92 }
93 const schemas = await this.showAllSchemas(options);
94 return Promise.all(schemas.map(schemaName => this.dropSchema(schemaName, options)));
95 }
96
97 /**
98 * Show all schemas

Callers

nothing calls this directly

Calls 4

showAllSchemasMethod · 0.95
dropSchemaMethod · 0.95
allMethod · 0.80
dropMethod · 0.45

Tested by

no test coverage detected