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

Method showConstraint

src/dialects/abstract/query-interface.js:771–774  ·  view source on GitHub ↗
(tableName, constraintName, options)

Source from the content-addressed store, hash-verified

769 }
770
771 async showConstraint(tableName, constraintName, options) {
772 const sql = this.queryGenerator.showConstraintsQuery(tableName, constraintName);
773 return await this.sequelize.query(sql, { ...options, type: QueryTypes.SHOWCONSTRAINTS });
774 }
775
776 /**
777 * 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