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

Function group_values

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

Source from the content-addressed store, hash-verified

428
429
430def group_values(tlist):
431 tidx, token = tlist.token_next_by(m=(T.Keyword, 'VALUES'))
432 start_idx = tidx
433 end_idx = -1
434 while token:
435 if isinstance(token, sql.Parenthesis):
436 end_idx = tidx
437 tidx, token = tlist.token_next(tidx)
438 if end_idx != -1:
439 tlist.group_tokens(sql.Values, start_idx, end_idx, extend=True)
440
441
442def group(stmt):

Callers

nothing calls this directly

Calls 3

token_next_byMethod · 0.80
token_nextMethod · 0.80
group_tokensMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…