(self, table)
| 211 | ] |
| 212 | |
| 213 | def get_uniques(self, table): |
| 214 | with connection.cursor() as cursor: |
| 215 | return [ |
| 216 | c["columns"][0] |
| 217 | for c in connection.introspection.get_constraints( |
| 218 | cursor, table |
| 219 | ).values() |
| 220 | if c["unique"] and len(c["columns"]) == 1 |
| 221 | ] |
| 222 | |
| 223 | def get_constraints(self, table): |
| 224 | """ |
no test coverage detected