MCPcopy Index your code
hub / github.com/andialbrecht/sqlparse / get_array_indices

Method get_array_indices

sqlparse/sql.py:465–471  ·  view source on GitHub ↗

Returns an iterator of index token lists

(self)

Source from the content-addressed store, hash-verified

463 return ordering.normalized if ordering else None
464
465 def get_array_indices(self):
466 """Returns an iterator of index token lists"""
467
468 for token in self.tokens:
469 if isinstance(token, SquareBrackets):
470 # Use [1:-1] index to discard the square brackets
471 yield token.tokens[1:-1]
472
473
474class IdentifierList(TokenList):

Calls

no outgoing calls

Tested by 5

test_2d_array_indexFunction · 0.64
test_aliased_array_indexFunction · 0.64