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

Method go

test/orm/test_froms.py:2248–2256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2246 sess = fixture_session()
2247
2248 def go():
2249 results = (
2250 sess.query(User)
2251 .limit(1)
2252 .options(joinedload(User.addresses))
2253 .add_columns(User.name)
2254 .all()
2255 )
2256 eq_(results, [(User(name="jack"), "jack")])
2257
2258 self.assert_sql_count(testing.db, go, 1)
2259

Callers

nothing calls this directly

Calls 8

joinedloadFunction · 0.90
eq_Function · 0.90
UserClass · 0.70
allMethod · 0.45
add_columnsMethod · 0.45
optionsMethod · 0.45
limitMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected