MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / user

Method user

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

Source from the content-addressed store, hash-verified

182 reset_called += 1
183
184 async def user(pool):
185 async with pool.acquire() as con:
186 if con._con not in cons: # `con` is `PoolConnectionProxy`.
187 raise RuntimeError('init was not called')
188
189 async with self.create_pool(database='postgres',
190 init_size=2,

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected