Returns a `Xid` to pass to the `!tpc_*()` methods of this connection. The argument types and constraints are explained in :ref:`two-phase-commit`. The values passed to the method will be available on the returned object as the members `~Xid.format_id`, `~Xi
(self, format_id: int, gtrid: str, bqual: str)
| 615 | yield from self._pipeline._sync_gen() |
| 616 | |
| 617 | def xid(self, format_id: int, gtrid: str, bqual: str) -> Xid: |
| 618 | """ |
| 619 | Returns a `Xid` to pass to the `!tpc_*()` methods of this connection. |
| 620 | |
| 621 | The argument types and constraints are explained in |
| 622 | :ref:`two-phase-commit`. |
| 623 | |
| 624 | The values passed to the method will be available on the returned |
| 625 | object as the members `~Xid.format_id`, `~Xid.gtrid`, `~Xid.bqual`. |
| 626 | """ |
| 627 | self._check_tpc() |
| 628 | return Xid.from_parts(format_id, gtrid, bqual) |
| 629 | |
| 630 | def _tpc_begin_gen(self, xid: Xid | str) -> PQGen[None]: |
| 631 | self._check_tpc() |