MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_outer_joinedload_wo_limit

Method test_outer_joinedload_wo_limit

test/orm/test_lockmode.py:127–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 sess.close()
126
127 def test_outer_joinedload_wo_limit(self):
128 User = self.classes.User
129 sess = fixture_session()
130 q = sess.query(User).options(
131 joinedload(User.addresses, innerjoin=False)
132 )
133
134 if testing.against("postgresql"):
135 q = q.with_for_update(of=User)
136 else:
137 q = q.with_for_update()
138
139 q.all()
140 sess.close()
141
142 def test_join_w_subquery(self):
143 User = self.classes.User

Callers

nothing calls this directly

Calls 8

fixture_sessionFunction · 0.90
joinedloadFunction · 0.90
optionsMethod · 0.45
queryMethod · 0.45
againstMethod · 0.45
with_for_updateMethod · 0.45
allMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected