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

Method go

test/orm/test_subquery_relations.py:73–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 q = sess.query(User).options(subqueryload(User.addresses))
72
73 def go():
74 eq_(
75 [
76 User(
77 id=7,
78 addresses=[
79 Address(id=1, email_address="jack@bean.com")
80 ],
81 )
82 ],
83 q.filter(User.id == 7).all(),
84 )
85
86 self.assert_sql_count(testing.db, go, 2)
87

Callers

nothing calls this directly

Calls 15

eq_Function · 0.90
aliasedFunction · 0.90
subqueryloadFunction · 0.90
deferFunction · 0.90
joinedloadFunction · 0.90
bindparamFunction · 0.90
is_notFunction · 0.90
is_Function · 0.90
subqueryloadMethod · 0.80
UserClass · 0.70
AddressClass · 0.70
DingalingClass · 0.70

Tested by

no test coverage detected