MCPcopy
hub / github.com/MagicStack/asyncpg / __aenter__

Method __aenter__

asyncpg/transaction.py:63–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 self._managed = False
62
63 async def __aenter__(self):
64 if self._managed:
65 raise apg_errors.InterfaceError(
66 'cannot enter context: already in an `async with` block')
67 self._managed = True
68 await self.start()
69
70 async def __aexit__(self, extype, ex, tb):
71 try:

Callers

nothing calls this directly

Calls 1

startMethod · 0.95

Tested by

no test coverage detected