(self, connection: Connection)
| 2654 | __slots__ = ("connection", "is_active") |
| 2655 | |
| 2656 | def __init__(self, connection: Connection): |
| 2657 | assert connection._transaction is None |
| 2658 | if connection._trans_context_manager: |
| 2659 | TransactionalContext._trans_ctx_check(connection) |
| 2660 | self.connection = connection |
| 2661 | self._connection_begin_impl() |
| 2662 | connection._transaction = self |
| 2663 | |
| 2664 | self.is_active = True |
| 2665 | |
| 2666 | def _deactivate_from_connection(self) -> None: |
| 2667 | if self.is_active: |
nothing calls this directly
no test coverage detected