MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_foreign_key_constraint

Method visit_foreign_key_constraint

lib/sqlalchemy/sql/ddl.py:1698–1702  ·  view source on GitHub ↗
(self, constraint)

Source from the content-addressed store, hash-verified

1696 self.traverse_single(column.default)
1697
1698 def visit_foreign_key_constraint(self, constraint):
1699 if not self.dialect.supports_alter:
1700 return
1701 with self.with_ddl_events(constraint):
1702 DropConstraint(constraint)._invoke_with(self.connection)
1703
1704 def visit_sequence(self, sequence, drop_ok=False):
1705 if not drop_ok and not self._can_drop_sequence(sequence):

Callers

nothing calls this directly

Calls 3

DropConstraintClass · 0.85
_invoke_withMethod · 0.80
with_ddl_eventsMethod · 0.45

Tested by

no test coverage detected