MCPcopy
hub / github.com/andialbrecht/sqlparse / test_grouping_as_cte

Function test_grouping_as_cte

tests/test_grouping.py:670–675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

668
669
670def test_grouping_as_cte():
671 p = sqlparse.parse('foo AS WITH apple AS 1, banana AS 2')[0].tokens
672 assert len(p) > 4
673 assert p[0].get_alias() is None
674 assert p[2].value == 'AS'
675 assert p[4].value == 'WITH'
676
677def test_grouping_create_table():
678 p = sqlparse.parse("create table db.tbl (a string)")[0].tokens

Callers

nothing calls this directly

Calls 1

get_aliasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…