(self)
| 1108 | self.__in_begin = False |
| 1109 | |
| 1110 | def _rollback_impl(self) -> None: |
| 1111 | if self._has_events or self.engine._has_events: |
| 1112 | self.dispatch.rollback(self) |
| 1113 | |
| 1114 | if self._still_open_and_dbapi_connection_is_valid: |
| 1115 | if self._echo: |
| 1116 | if self._is_autocommit_isolation(): |
| 1117 | if self.dialect.skip_autocommit_rollback: |
| 1118 | self._log_info( |
| 1119 | "ROLLBACK will be skipped by " |
| 1120 | "skip_autocommit_rollback" |
| 1121 | ) |
| 1122 | else: |
| 1123 | self._log_info( |
| 1124 | "ROLLBACK using DBAPI connection.rollback(); " |
| 1125 | "set skip_autocommit_rollback to prevent fully" |
| 1126 | ) |
| 1127 | else: |
| 1128 | self._log_info("ROLLBACK") |
| 1129 | try: |
| 1130 | self.engine.dialect.do_rollback(self.connection) |
| 1131 | except BaseException as e: |
| 1132 | self._handle_dbapi_exception(e, None, None, None, None) |
| 1133 | |
| 1134 | def _commit_impl(self) -> None: |
| 1135 | if self._has_events or self.engine._has_events: |
no test coverage detected