MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / references

Method references

lib/sqlalchemy/sql/schema.py:2544–2552  ·  view source on GitHub ↗

Return True if this Column references the given column via foreign key.

(self, column: Column[Any])

Source from the content-addressed store, hash-verified

2542 return self.description
2543
2544 def references(self, column: Column[Any]) -> bool:
2545 """Return True if this Column references the given column via foreign
2546 key."""
2547
2548 for fk in self.foreign_keys:
2549 if fk.column.proxy_set.intersection(column.proxy_set):
2550 return True
2551 else:
2552 return False
2553
2554 def append_foreign_key(self, fk: ForeignKey) -> None:
2555 fk._set_parent_with_dispatch(self)

Calls 1

intersectionMethod · 0.45