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

Function group_typecasts

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

Source from the content-addressed store, hash-verified

98
99
100def group_typecasts(tlist):
101 def match(token):
102 return token.match(T.Punctuation, '::')
103
104 def valid(token):
105 return token is not None
106
107 def post(tlist, pidx, tidx, nidx):
108 return pidx, nidx
109
110 valid_prev = valid_next = valid
111 _group(tlist, sql.Identifier, match, valid_prev, valid_next, post)
112
113
114def group_tzcasts(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…