* Show all schemas * * @param {object} [options] Query options * * @returns {Promise<Array>}
(options)
| 102 | * @returns {Promise<Array>} |
| 103 | */ |
| 104 | async showAllSchemas(options) { |
| 105 | options = { |
| 106 | ...options, |
| 107 | raw: true, |
| 108 | type: this.sequelize.QueryTypes.SELECT |
| 109 | }; |
| 110 | |
| 111 | const showSchemasSql = this.queryGenerator.showSchemasQuery(options); |
| 112 | |
| 113 | const schemaNames = await this.sequelize.query(showSchemasSql, options); |
| 114 | |
| 115 | return _.flatten(schemaNames.map(value => value.schema_name ? value.schema_name : value)); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Return database version |
no test coverage detected