(self, text: str)
| 1092 | self.calls: list[str] = [] |
| 1093 | |
| 1094 | def run(self, text: str) -> Iterator[SQLResult]: |
| 1095 | self.calls.append(text) |
| 1096 | if text == 'iface' and self.calls.count('iface') == 1: |
| 1097 | raise pymysql.err.InterfaceError() |
| 1098 | return iter([SQLResult(status=f'ok:{text}')]) |
| 1099 | |
| 1100 | interface_sql = InterfaceSQLExecute() |
| 1101 | cli_interface = make_repl_cli(interface_sql) |