(self)
| 1124 | self.__in_begin = False |
| 1125 | |
| 1126 | def _rollback_impl(self) -> None: |
| 1127 | if self._has_events or self.engine._has_events: |
| 1128 | self.dispatch.rollback(self) |
| 1129 | |
| 1130 | if self._still_open_and_dbapi_connection_is_valid: |
| 1131 | if self._echo: |
| 1132 | if self._is_autocommit_isolation(): |
| 1133 | if self.dialect.skip_autocommit_rollback: |
| 1134 | self._log_info( |
| 1135 | "ROLLBACK will be skipped by " |
| 1136 | "skip_autocommit_rollback" |
| 1137 | ) |
| 1138 | else: |
| 1139 | self._log_info( |
| 1140 | "ROLLBACK using DBAPI connection.rollback(); " |
| 1141 | "set skip_autocommit_rollback to prevent fully" |
| 1142 | ) |
| 1143 | else: |
| 1144 | self._log_info("ROLLBACK") |
| 1145 | try: |
| 1146 | self.engine.dialect.do_rollback(self.connection) |
| 1147 | except BaseException as e: |
| 1148 | self._handle_dbapi_exception(e, None, None, None, None) |
| 1149 | |
| 1150 | def _commit_impl(self) -> None: |
| 1151 | if self._has_events or self.engine._has_events: |
no test coverage detected