(self)
| 144 | return len(parsed) == 1 and parsed[0].get_type() == "SELECT" |
| 145 | |
| 146 | def is_explain(self) -> bool: |
| 147 | # Remove comments |
| 148 | statements_without_comments = sqlparse.format( |
| 149 | self.stripped(), strip_comments=True |
| 150 | ) |
| 151 | |
| 152 | # Explain statements will only be the first statement |
| 153 | return statements_without_comments.startswith("EXPLAIN") |
| 154 | |
| 155 | def is_show(self) -> bool: |
| 156 | # Remove comments |