* Get all tables in current database * * @param {object} [options] Query options * @param {boolean} [options.raw=true] Run query in raw mode * @param {QueryType} [options.type=QueryType.SHOWTABLE] query type * * @returns {Promise } * @private
(options)
| 328 | * @private |
| 329 | */ |
| 330 | async showAllTables(options) { |
| 331 | options = { |
| 332 | ...options, |
| 333 | raw: true, |
| 334 | type: QueryTypes.SHOWTABLES |
| 335 | }; |
| 336 | |
| 337 | const showTablesSql = this.queryGenerator.showTablesQuery(this.sequelize.config.database); |
| 338 | const tableNames = await this.sequelize.query(showTablesSql, options); |
| 339 | return _.flatten(tableNames); |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Describe a table structure |