MCPcopy Index your code
hub / github.com/dbcli/mycli / change_table_format

Method change_table_format

mycli/client_commands.py:102–110  ·  view source on GitHub ↗
(self, arg: str, **_)

Source from the content-addressed store, hash-verified

100 yield self.change_db(arg).send(None)
101
102 def change_table_format(self, arg: str, **_) -> Generator[SQLResult, None, None]:
103 try:
104 self.main_formatter.format_name = arg
105 yield SQLResult(status=f"Changed table format to {arg}")
106 except ValueError:
107 msg = f"Table format {arg} not recognized. Allowed formats:"
108 for table_type in self.main_formatter.supported_formats:
109 msg += f"\n\t{table_type}"
110 yield SQLResult(status=msg)
111
112 def change_redirect_format(self, arg: str, **_) -> Generator[SQLResult, None, None]:
113 try:

Calls 1

SQLResultClass · 0.90