MCPcopy
hub / github.com/sequelize/sequelize / showAllTables

Method showAllTables

src/dialects/abstract/query-interface.js:330–340  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 7

dropAllTablesMethod · 0.95
sequelize.test.jsFile · 0.80
testFunction · 0.80
dropAllTablesMethod · 0.80

Calls 2

showTablesQueryMethod · 0.45
queryMethod · 0.45

Tested by 2

testFunction · 0.64