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

Class SQLResult

mycli/packages/sqlresult.py:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8@dataclass
9class SQLResult:
10 preamble: str | None = None
11 header: list[str] | str | None = None
12 rows: Cursor | list[tuple] | None = None
13 postamble: str | None = None
14 status: str | FormattedText | None = None
15 command: dict[str, str | float] | None = None
16
17 def __str__(self):
18 return f"{self.preamble}, {self.header}, {self.rows}, {self.postamble}, {self.status}, {self.command}"
19
20 @cached_property
21 def status_plain(self):
22 if self.status is None:
23 return None
24 return to_plain_text(self.status)

Callers 15

runMethod · 0.90
get_resultMethod · 0.90
refreshMethod · 0.90
refresh_completionsMethod · 0.90
manual_reconnectMethod · 0.90
change_table_formatMethod · 0.90
change_dbMethod · 0.90
execute_from_fileMethod · 0.90
change_prompt_formatMethod · 0.90
handle_llmFunction · 0.90
enable_show_warningsFunction · 0.90

Calls

no outgoing calls