MCPcopy
hub / github.com/tortoise/tortoise-orm / __aenter__

Method __aenter__

tortoise/context.py:505–513  ·  view source on GitHub ↗

Enter the async context manager and set this context as current. Returns: This context instance.

(self)

Source from the content-addressed store, hash-verified

503 self._token = None
504
505 async def __aenter__(self) -> TortoiseContext:
506 """
507 Enter the async context manager and set this context as current.
508
509 Returns:
510 This context instance.
511 """
512 self.__enter__()
513 return self
514
515 async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
516 """

Callers 2

dbFunction · 0.45
db_postgresFunction · 0.45

Calls 1

__enter__Method · 0.95

Tested by 2

dbFunction · 0.36
db_postgresFunction · 0.36