MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / B

Class B

test/ext/test_associationproxy.py:3454–3461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3452 b_data = association_proxy("bs", "data_syn")
3453
3454 class B(Base):
3455 __tablename__ = "b"
3456 id = Column(Integer, primary_key=True)
3457 a_id = Column(ForeignKey("a.id"))
3458 data = Column(String)
3459 data_syn = synonym("data")
3460
3461 a_data = association_proxy("a", "data_syn")
3462
3463 def test_o2m_instance_getter(self):
3464 A, B = self.classes("A", "B")

Callers

nothing calls this directly

Calls 4

ColumnClass · 0.90
ForeignKeyClass · 0.90
synonymFunction · 0.90
association_proxyFunction · 0.90

Tested by

no test coverage detected