(sql: str)
| 62 | |
| 63 | |
| 64 | def parse_special_command(sql: str) -> tuple[str, CommandVerbosity, str]: |
| 65 | command, _, arg = sql.partition(" ") |
| 66 | command_verbosity = CommandVerbosity.NORMAL |
| 67 | if "+" in command: |
| 68 | command_verbosity = CommandVerbosity.VERBOSE |
| 69 | elif "-" in command: |
| 70 | command_verbosity = CommandVerbosity.SUCCINCT |
| 71 | command = command.strip().strip("+-") |
| 72 | return (command, command_verbosity, arg.strip()) |
| 73 | |
| 74 | |
| 75 | def special_command( |
no outgoing calls
no test coverage detected