MCPcopy
hub / github.com/apache/superset / strip_comments

Method strip_comments

superset/sql_parse.py:177–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 return self.sql.strip(" \t\n;")
176
177 def strip_comments(self) -> str:
178 return sqlparse.format(self.stripped(), strip_comments=True)
179
180 def get_statements(self) -> List[str]:
181 """Returns a list of SQL statements as strings, stripped"""

Callers 4

is_selectMethod · 0.95
is_valid_ctasMethod · 0.95
is_valid_cvasMethod · 0.95
strip_comments_from_sqlFunction · 0.80

Calls 1

strippedMethod · 0.95

Tested by

no test coverage detected