MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _cancel

Method _cancel

lib/sqlalchemy/engine/base.py:2796–2803  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2794 return self.connection._nested_transaction is not self
2795
2796 def _cancel(self) -> None:
2797 # called by RootTransaction when the outer transaction is
2798 # committed, rolled back, or closed to cancel all savepoints
2799 # without any action being taken
2800 self.is_active = False
2801 self._deactivate_from_connection()
2802 if self._previous_nested:
2803 self._previous_nested._cancel()
2804
2805 def _close_impl(
2806 self, deactivate_from_connection: bool, warn_already_deactive: bool

Callers 2

_close_implMethod · 0.80
_do_commitMethod · 0.80

Calls 1

Tested by

no test coverage detected