MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _can_drop_index

Method _can_drop_index

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

Source from the content-addressed store, hash-verified

1628 )
1629
1630 def _can_drop_index(self, index):
1631 effective_schema = self.connection.schema_for_object(index.table)
1632 if effective_schema:
1633 self.dialect.validate_identifier(effective_schema)
1634 return (
1635 not self.checkfirst & CheckFirst.INDEXES
1636 or self.dialect.has_index(
1637 self.connection,
1638 index.table.name,
1639 index.name,
1640 schema=effective_schema,
1641 )
1642 )
1643
1644 def _can_drop_sequence(self, sequence):
1645 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