MCPcopy
hub / github.com/psycopg/psycopg / rollback

Method rollback

psycopg/psycopg/connection.py:307–310  ·  view source on GitHub ↗

Roll back to the start of any pending transaction.

(self)

Source from the content-addressed store, hash-verified

305 self.wait(self._commit_gen())
306
307 def rollback(self) -> None:
308 """Roll back to the start of any pending transaction."""
309 with self.lock:
310 self.wait(self._rollback_gen())
311
312 def cancel_safe(self, *, timeout: float = 30.0) -> None:
313 """Cancel the current operation on the connection.

Calls 2

waitMethod · 0.95
_rollback_genMethod · 0.45