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

Method flatten

sqlparse/sql.py:85–87  ·  view source on GitHub ↗

Resolve subgroups.

(self)

Source from the content-addressed store, hash-verified

83 return re.sub(r'\s+', ' ', raw)
84
85 def flatten(self):
86 """Resolve subgroups."""
87 yield self
88
89 def match(self, ttype, values, regex=False):
90 """Checks whether the token matches the given arguments.

Callers 9

test_token_flattenFunction · 0.95
test_sqlite_identifiersFunction · 0.45
test_array_literalFunction · 0.45
extract_definitionsFunction · 0.45
flattenMethod · 0.45
_flatten_up_to_tokenMethod · 0.45
_process_caseMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_token_flattenFunction · 0.76
test_sqlite_identifiersFunction · 0.36
test_array_literalFunction · 0.36