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

Method acquire_connection

tortoise/backends/mysql/client.py:181–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

179 await self.close()
180
181 def acquire_connection(self) -> ConnectionWrapper | PoolConnectionWrapper:
182 return PoolConnectionWrapper(self, self._pool_init_lock)
183
184 def _in_transaction(self) -> TransactionContext:
185 return TransactionContextPooled(TransactionWrapper(self), self._pool_init_lock)

Callers 6

create_connectionMethod · 0.95
execute_insertMethod · 0.95
execute_manyMethod · 0.95
execute_queryMethod · 0.95
execute_scriptMethod · 0.95
execute_insertMethod · 0.45

Calls 1

Tested by

no test coverage detected