MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / three

Method three

test/sql/test_compare.py:1046–1056  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1044 return stmt
1045
1046 def three():
1047 a1 = table_a.alias()
1048 a2 = table_a.alias()
1049 ex = exists().where(table_b.c.b == a1.c.a)
1050
1051 stmt = (
1052 select(a1.c.a, a2.c.a)
1053 .select_from(a1.join(a2, a1.c.b == a2.c.b))
1054 .where(ex)
1055 )
1056 return stmt
1057
1058 def four():
1059 stmt = select(table_a.c.a).cte(recursive=True)

Callers

nothing calls this directly

Calls 10

existsFunction · 0.90
selectFunction · 0.90
LambdaElementClass · 0.90
and_Function · 0.90
aliasMethod · 0.45
whereMethod · 0.45
select_fromMethod · 0.45
joinMethod · 0.45
labelMethod · 0.45
subqueryMethod · 0.45

Tested by

no test coverage detected