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

Method references

lib/sqlalchemy/sql/schema.py:3352–3357  ·  view source on GitHub ↗

Return True if the given :class:`_schema.Table` is referenced by this :class:`_schema.ForeignKey`.

(self, table: Table)

Source from the content-addressed store, hash-verified

3350 target_fullname = property(_get_colspec)
3351
3352 def references(self, table: Table) -> bool:
3353 """Return True if the given :class:`_schema.Table`
3354 is referenced by this
3355 :class:`_schema.ForeignKey`."""
3356
3357 return table.corresponding_column(self.column) is not None
3358
3359 def get_referent(self, table: FromClause) -> Optional[Column[Any]]:
3360 """Return the :class:`_schema.Column` in the given

Callers

nothing calls this directly

Calls 1

corresponding_columnMethod · 0.45

Tested by

no test coverage detected