(self, model, column_name)
| 228 | return connection.introspection.get_constraints(cursor, table) |
| 229 | |
| 230 | def get_constraints_for_column(self, model, column_name): |
| 231 | constraints = self.get_constraints(model._meta.db_table) |
| 232 | constraints_for_column = [] |
| 233 | for name, details in constraints.items(): |
| 234 | if details["columns"] == [column_name]: |
| 235 | constraints_for_column.append(name) |
| 236 | return sorted(constraints_for_column) |
| 237 | |
| 238 | def get_constraint_opclasses(self, constraint_name): |
| 239 | with connection.cursor() as cursor: |
no test coverage detected