MCPcopy
hub / github.com/sequelize/sequelize / showIndex

Method showIndex

lib/dialects/abstract/query-interface.js:576–579  ·  lib/dialects/abstract/query-interface.js::QueryInterface.showIndex

* Show indexes on a table * * @param {string} tableName table name * @param {object} [options] Query options * * @returns {Promise<Array>} * @private

(tableName, options)

Source from the content-addressed store, hash-verified

574 * @private
575 */
576 async showIndex(tableName, options) {
577 const sql = this.queryGenerator.showIndexesQuery(tableName, options);
578 return await this.sequelize.query(sql, { ...options, type: QueryTypes.SHOWINDEXES });
579 }
580
581
582 /**

Callers 6

syncMethod · 0.80
model.test.jsFile · 0.80
sync.test.jsFile · 0.80

Calls 2

showIndexesQueryMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected