MCPcopy Create free account
hub / github.com/dbcli/mycli / run

Method run

test/pytests/test_main_modes_repl.py:1094–1098  ·  view source on GitHub ↗
(self, text: str)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

SQLResultClass · 0.90

Tested by

no test coverage detected