(parsed: TokenList)
| 81 | # This code is borrowed from sqlparse example script. |
| 82 | # <url> |
| 83 | def is_subselect(parsed: TokenList) -> bool: |
| 84 | if not parsed.is_group: |
| 85 | return False |
| 86 | for item in parsed.tokens: |
| 87 | if item.ttype is DML and item.value.upper() in ("SELECT", "INSERT", "UPDATE", "CREATE", "DELETE"): |
| 88 | return True |
| 89 | return False |
| 90 | |
| 91 | |
| 92 | def get_last_select(parsed: TokenList) -> TokenList: |
no outgoing calls