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

Function is_select

pgcli/main.py:1785–1789  ·  view source on GitHub ↗

Returns true if the first word in status is 'select'.

(status)

Source from the content-addressed store, hash-verified

1783
1784
1785def is_select(status):
1786 """Returns true if the first word in status is 'select'."""
1787 if not status:
1788 return False
1789 return status.split(None, 1)[0].lower() == "select"
1790
1791
1792def diagnostic_output(diagnostic: Diagnostic) -> str:

Callers 1

_should_limit_outputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected