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

Method go

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

Source from the content-addressed store, hash-verified

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

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