MCPcopy Index your code
hub / github.com/dbcli/pgcli / _is_named_query_execution

Method _is_named_query_execution

pgcli/main.py:322–325  ·  view source on GitHub ↗

Check if the command is a named query execution (\n ).

(self, text)

Source from the content-addressed store, hash-verified

320 return [(None, None, None, message)]
321
322 def _is_named_query_execution(self, text):
323 """Check if the command is a named query execution (\n <name>)."""
324 text = text.strip()
325 return text.startswith("\\n ") and not text.startswith("\\ns ") and not text.startswith("\\nd ")
326
327 def register_special_commands(self):
328 self.pgspecial.register(

Callers 2

execute_commandMethod · 0.95
_evaluate_commandMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected