* Drop all schemas * * @param {object} [options] Query options * * @returns {Promise}
(options)
| 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 |
nothing calls this directly
no test coverage detected