MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __aexit__

Method __aexit__

tortoise/backends/base/client.py:409–411  ·  view source on GitHub ↗
(self, exc_type: Any, exc_val: Any, exc_tb: Any)

Source from the content-addressed store, hash-verified

407 return cast(T_conn, self.connection)
408
409 async def __aexit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
410 # release the connection back to the pool
411 await self.client._pool.release(self.connection)

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected