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

Method format_output

test/utils.py:77–81  ·  view source on GitHub ↗
(self, rows: Any, header: Any, format_name: str | None = None, **kwargs: Any)

Source from the content-addressed store, hash-verified

75 self.calls: list[tuple[tuple[Any, ...], dict[str, Any]]] = []
76
77 def format_output(self, rows: Any, header: Any, format_name: str | None = None, **kwargs: Any) -> list[str] | str:
78 self.calls.append(((rows, header, format_name), kwargs))
79 if format_name == 'vertical':
80 return ['vertical output']
81 return ['plain output']
82
83
84class ReusableLock:

Callers 1

format_sqlresultMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected