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

Method go

test/orm/test_selectin_relations.py:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

eq_Function · 0.90
selectinloadFunction · 0.90
selectFunction · 0.90
fixture_sessionFunction · 0.90
aliasedFunction · 0.90
bindparamFunction · 0.90
is_notFunction · 0.90
is_Function · 0.90
selectinloadMethod · 0.80
UserClass · 0.70
AddressClass · 0.70
DingalingClass · 0.70

Tested by

no test coverage detected