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

Class B

test/orm/test_deferred.py:2791–2794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2789 bs = relationship("B")
2790
2791 class B(Base):
2792 __tablename__ = "b"
2793 id = Column(Integer, primary_key=True)
2794 a_id = Column(ForeignKey("a.id"))
2795
2796 A.b_count = deferred(
2797 select(func.count(1)).where(A.id == B.a_id).scalar_subquery()

Callers 3

insert_dataMethod · 0.70
test_in_joinedloadMethod · 0.70

Calls 2

ColumnClass · 0.90
ForeignKeyClass · 0.90

Tested by 3

insert_dataMethod · 0.56
test_in_joinedloadMethod · 0.56