MCPcopy
hub / github.com/sequelize/sequelize / showConstraint

Method showConstraint

lib/dialects/abstract/query-interface.js:748–751  ·  lib/dialects/abstract/query-interface.js::QueryInterface.showConstraint
(tableName, constraintName, options)

Source from the content-addressed store, hash-verified

746 }
747
748 async showConstraint(tableName, constraintName, options) {
749 const sql = this.queryGenerator.showConstraintsQuery(tableName, constraintName);
750 return await this.sequelize.query(sql, { ...options, type: QueryTypes.SHOWCONSTRAINTS });
751 }
752
753 /**
754 * Remove a constraint from a table

Callers 2

removeConstraintMethod · 0.80

Calls 2

showConstraintsQueryMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected