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

Method _can_drop_index

lib/sqlalchemy/sql/ddl.py:1165–1174  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

1163 )
1164
1165 def _can_drop_index(self, index):
1166 effective_schema = self.connection.schema_for_object(index.table)
1167 if effective_schema:
1168 self.dialect.validate_identifier(effective_schema)
1169 return not self.checkfirst or self.dialect.has_index(
1170 self.connection,
1171 index.table.name,
1172 index.name,
1173 schema=effective_schema,
1174 )
1175
1176 def _can_drop_sequence(self, sequence):
1177 effective_schema = self.connection.schema_for_object(sequence)

Callers 1

visit_indexMethod · 0.95

Calls 3

schema_for_objectMethod · 0.45
validate_identifierMethod · 0.45
has_indexMethod · 0.45

Tested by

no test coverage detected