MCPcopy
hub / github.com/dbcli/pgcli / get_last_query

Method get_last_query

pgcli/main.py:1326–1328  ·  view source on GitHub ↗

Get the last query executed or None.

(self)

Source from the content-addressed store, hash-verified

1324 return string
1325
1326 def get_last_query(self):
1327 """Get the last query executed or None."""
1328 return self.query_history[-1][0] if self.query_history else None
1329
1330 def is_too_wide(self, line):
1331 """Will this line be too wide to fit into terminal?"""

Callers 1

handle_editor_commandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected