MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_join_alias_flat

Method test_join_alias_flat

test/sql/test_selectable.py:2013–2019  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2011 )
2012
2013 def test_join_alias_flat(self):
2014 a = table("a", column("a"))
2015 b = table("b", column("b"))
2016 self.assert_compile(
2017 a.join(b, a.c.a == b.c.b)._anonymous_fromclause(flat=True),
2018 "a AS a_1 JOIN b AS b_1 ON a_1.a = b_1.b",
2019 )
2020
2021 def test_join_standalone_alias_flat(self):
2022 a = table("a", column("a"))

Callers

nothing calls this directly

Calls 5

tableFunction · 0.90
columnFunction · 0.90
assert_compileMethod · 0.80
_anonymous_fromclauseMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected