MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / B

Class B

test/ext/test_associationproxy.py:3348–3355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3346 b_data = association_proxy("bs", "data_syn")
3347
3348 class B(Base):
3349 __tablename__ = "b"
3350 id = Column(Integer, primary_key=True)
3351 a_id = Column(ForeignKey("a.id"))
3352 data = Column(String)
3353 data_syn = synonym("data")
3354
3355 a_data = association_proxy("a", "data_syn")
3356
3357 def test_o2m_instance_getter(self):
3358 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