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

Method user

tests/test_pool.py:166–169  ·  view source on GitHub ↗
(pool)

Source from the content-addressed store, hash-verified

164 reset_called += 1
165
166 async def user(pool):
167 async with pool.acquire() as con:
168 if con._con not in cons: # `con` is `PoolConnectionProxy`.
169 raise RuntimeError('init was not called')
170
171 async with self.create_pool(database='postgres',
172 min_size=2,

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected