(
self, is_ctxmanager: bool = False
)
| 1929 | return obj |
| 1930 | |
| 1931 | async def start( |
| 1932 | self, is_ctxmanager: bool = False |
| 1933 | ) -> AsyncSessionTransaction: |
| 1934 | self.sync_transaction = self._assign_proxied( |
| 1935 | await greenlet_spawn( |
| 1936 | self.session.sync_session.begin_nested |
| 1937 | if self.nested |
| 1938 | else self.session.sync_session.begin |
| 1939 | ) |
| 1940 | ) |
| 1941 | if is_ctxmanager: |
| 1942 | self.sync_transaction.__enter__() |
| 1943 | return self |
| 1944 | |
| 1945 | async def __aexit__(self, type_: Any, value: Any, traceback: Any) -> None: |
| 1946 | await greenlet_spawn( |
nothing calls this directly
no test coverage detected