MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_ac_relationships.py:94–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 s = Session(testing.db)
93
94 def go():
95 for a1 in s.query(A): # 1 query
96 eq_(len(a1.partitioned_bs), 9) # 3 queries
97 for b in a1.partitioned_bs:
98 eq_(len(b.cs), 2) # 9 * 3 = 27 queries
99
100 self.assert_sql_count(testing.db, go, 31)
101

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
noloadFunction · 0.90
selectinloadFunction · 0.90
queryMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected