(self, table)
| 12 | models = [City] |
| 13 | |
| 14 | def get_indexes(self, table): |
| 15 | with connection.cursor() as cursor: |
| 16 | constraints = connection.introspection.get_constraints(cursor, table) |
| 17 | return { |
| 18 | name: constraint["columns"] |
| 19 | for name, constraint in constraints.items() |
| 20 | if constraint["index"] |
| 21 | } |
| 22 | |
| 23 | def has_spatial_indexes(self, table): |
| 24 | if connection.ops.mysql: |
no test coverage detected