MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / visit_index

Method visit_index

lib/sqlalchemy/sql/ddl.py:1188–1193  ·  view source on GitHub ↗
(self, index, drop_ok=False)

Source from the content-addressed store, hash-verified

1186 )
1187
1188 def visit_index(self, index, drop_ok=False):
1189 if not drop_ok and not self._can_drop_index(index):
1190 return
1191
1192 with self.with_ddl_events(index):
1193 DropIndex(index)(index, self.connection)
1194
1195 def visit_table(
1196 self,

Callers

nothing calls this directly

Calls 3

_can_drop_indexMethod · 0.95
DropIndexClass · 0.85
with_ddl_eventsMethod · 0.45

Tested by

no test coverage detected