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

Method create_pool

tortoise/backends/psycopg/client.py:114–117  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

112 )
113
114 async def create_pool(self, **kwargs) -> AsyncConnectionPool:
115 pool = AsyncConnectionPool(open=False, **kwargs)
116 await pool.open()
117 return pool
118
119 async def db_delete(self) -> None:
120 try:

Callers 4

create_connectionMethod · 0.95
_expire_connectionsMethod · 0.95
create_connectionMethod · 0.45
create_connectionMethod · 0.45

Calls 1

AsyncConnectionPoolClass · 0.85

Tested by

no test coverage detected