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

Method get_xact_id

tests/test_pool.py:522–523  ·  view source on GitHub ↗
(con)

Source from the content-addressed store, hash-verified

520 async with self.create_pool(database='postgres',
521 min_size=1, max_size=1) as pool:
522 async def get_xact_id(con):
523 return await con.fetchval('select txid_current()')
524
525 with self.assertLoopErrorHandlerCalled('an active transaction'):
526 async with pool.acquire() as con:

Callers

nothing calls this directly

Calls 1

fetchvalMethod · 0.45

Tested by

no test coverage detected