MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_from

Method test_select_from

test/sql/test_tablesample.py:58–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 )
57
58 def test_select_from(self):
59 table1 = self.tables.people
60
61 self.assert_compile(
62 select(table1.tablesample(text("1"), name="alias").c.people_id),
63 "SELECT alias.people_id FROM "
64 "people AS alias TABLESAMPLE system(1)",
65 )
66
67 def test_no_alias_construct(self):
68 a = table("a", column("x"))

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
textFunction · 0.90
assert_compileMethod · 0.80
tablesampleMethod · 0.80

Tested by

no test coverage detected