MCPcopy
hub / github.com/psycopg/psycopg / make_xid

Method make_xid

tests/dbapi20_tpc.py:23–26  ·  view source on GitHub ↗
(self, con)

Source from the content-addressed store, hash-verified

21 _global_id_prefix = "dbapi20_tpc:"
22
23 def make_xid(self, con):
24 id = TwoPhaseCommitTests._last_id
25 TwoPhaseCommitTests._last_id += 1
26 return con.xid(42, f"{self._global_id_prefix}{id}", "qualifier")
27
28 def test_xid(self):
29 con = self.connect()

Calls 1

xidMethod · 0.80