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

Method log_query

mycli/output.py:72–76  ·  view source on GitHub ↗
(self, query: str)

Source from the content-addressed store, hash-verified

70 prompt_toolkit.print_formatted_text(styled_timing, style=self.ptoolkit_style)
71
72 def log_query(self, query: str) -> None:
73 if isinstance(self.logfile, TextIOWrapper):
74 self.logfile.write(f"\n# {datetime.now()}\n")
75 self.logfile.write(query)
76 self.logfile.write("\n")
77
78 def log_output(self, output: str | AnyFormattedText) -> None:
79 """Log the output in the audit log, if it's enabled."""

Callers 2

_one_iterationFunction · 0.45

Calls 2

writeMethod · 0.45
nowMethod · 0.45