(self, drop, **kw)
| 7259 | return text |
| 7260 | |
| 7261 | def visit_drop_index(self, drop, **kw): |
| 7262 | index = drop.element |
| 7263 | |
| 7264 | if index.name is None: |
| 7265 | raise exc.CompileError( |
| 7266 | "DROP INDEX requires that the index have a name" |
| 7267 | ) |
| 7268 | text = "\nDROP INDEX " |
| 7269 | if drop.if_exists: |
| 7270 | text += "IF EXISTS " |
| 7271 | |
| 7272 | return text + self._prepared_index_name(index, include_schema=True) |
| 7273 | |
| 7274 | def _prepared_index_name( |
| 7275 | self, index: Index, include_schema: bool = False |
nothing calls this directly
no test coverage detected