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

Function group_as

sqlparse/engine/grouping.py:194–208  ·  view source on GitHub ↗
(tlist)

Source from the content-addressed store, hash-verified

192
193
194def group_as(tlist):
195 def match(token):
196 return token.is_keyword and token.normalized == 'AS'
197
198 def valid_prev(token):
199 return token.normalized == 'NULL' or not token.is_keyword
200
201 def valid_next(token):
202 ttypes = T.DML, T.DDL, T.CTE
203 return not imt(token, t=ttypes) and token is not None
204
205 def post(tlist, pidx, tidx, nidx):
206 return pidx, nidx
207
208 _group(tlist, sql.Identifier, match, valid_prev, valid_next, post)
209
210
211def group_assignment(tlist):

Callers

nothing calls this directly

Calls 1

_groupFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…