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

Method test_standalone

test/sql/test_lateral.py:61–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 )
60
61 def test_standalone(self):
62 table1 = self.tables.people
63 subq = select(table1.c.people_id).subquery()
64
65 # alias name is not rendered because subquery is not
66 # in the context of a FROM clause
67 self.assert_compile(
68 lateral(subq, name="alias"),
69 "LATERAL (SELECT people.people_id FROM people)",
70 )
71
72 self.assert_compile(
73 subq.lateral(name="alias"),
74 "LATERAL (SELECT people.people_id FROM people)",
75 )
76
77 def test_standalone_implicit_subquery(self):
78 table1 = self.tables.people

Callers

nothing calls this directly

Calls 5

selectFunction · 0.90
lateralFunction · 0.90
assert_compileMethod · 0.80
subqueryMethod · 0.45
lateralMethod · 0.45

Tested by

no test coverage detected