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

Method showIndex

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

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

(tableName, options)

Source from the content-addressed store, hash-verified

596 * @private
597 */
598 async showIndex(tableName, options) {
599 const sql = this.queryGenerator.showIndexesQuery(tableName, options);
600 return await this.sequelize.query(sql, { ...options, type: QueryTypes.SHOWINDEXES });
601 }
602
603
604 /**

Callers 6

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

Calls 2

showIndexesQueryMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected