Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicStack/asyncpg
/ get_xact_id
Method
get_xact_id
tests/test_pool.py:583–584 ·
view source on GitHub ↗
(con)
Source
from the content-addressed store, hash-verified
581
min_size=1,
582
max_size=1)
as
pool:
583
async
def
get_xact_id(con):
584
return
await con.fetchval(
'select txid_current()'
)
585
586
with
self.assertLoopErrorHandlerCalled(
'an active transaction'
):
587
async
with
pool.acquire()
as
con:
Callers
nothing calls this directly
Calls
1
fetchval
Method · 0.45
Tested by
no test coverage detected