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

Function is_mutating

pgcli/main.py:1776–1782  ·  view source on GitHub ↗

Determines if the statement is mutating based on the status.

(status)

Source from the content-addressed store, hash-verified

1774
1775
1776def is_mutating(status):
1777 """Determines if the statement is mutating based on the status."""
1778 if not status:
1779 return False
1780
1781 mutating = {"insert", "update", "delete"}
1782 return status.split(None, 1)[0].lower() in mutating
1783
1784
1785def is_select(status):

Callers 1

_evaluate_commandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected