MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_from_function

Method test_from_function

test/orm/test_joins.py:3305–3321  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3303 )
3304
3305 def test_from_function(self):
3306 Bookcase = self.classes.Bookcase
3307
3308 s = fixture_session()
3309
3310 srf = lateral(func.generate_series(1, Bookcase.bookcase_shelves))
3311
3312 self.assert_compile(
3313 s.query(Bookcase).join(srf, true()),
3314 "SELECT bookcases.bookcase_id AS bookcases_bookcase_id, "
3315 "bookcases.bookcase_owner_id AS bookcases_bookcase_owner_id, "
3316 "bookcases.bookcase_shelves AS bookcases_bookcase_shelves, "
3317 "bookcases.bookcase_width AS bookcases_bookcase_width "
3318 "FROM bookcases JOIN "
3319 "LATERAL generate_series(:generate_series_1, "
3320 "bookcases.bookcase_shelves) AS anon_1 ON true",
3321 )
3322
3323 def test_from_function_aas(self):
3324 Bookcase = self.classes.Bookcase

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
lateralFunction · 0.90
trueFunction · 0.90
assert_compileMethod · 0.80
joinMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected