MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / three

Method three

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

Source from the content-addressed store, hash-verified

964 return stmt
965
966 def three():
967 a1 = table_a.alias()
968 a2 = table_a.alias()
969 ex = exists().where(table_b.c.b == a1.c.a)
970
971 stmt = (
972 select(a1.c.a, a2.c.a)
973 .select_from(a1.join(a2, a1.c.b == a2.c.b))
974 .where(ex)
975 )
976 return stmt
977
978 def four():
979 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