Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé
Classe « Connection »

Méthode sqlalchemy.Connection.begin_twophase

Signature de la méthode begin_twophase

def begin_twophase(self, xid: 'Optional[Any]' = None) -> 'TwoPhaseTransaction' 

Description

help(Connection.begin_twophase)

Begin a two-phase or XA transaction and return a transaction
handle.

The returned object is an instance of :class:`.TwoPhaseTransaction`,
which in addition to the methods provided by
:class:`.Transaction`, also provides a
:meth:`~.TwoPhaseTransaction.prepare` method.

:param xid: the two phase transaction id.  If not supplied, a
  random id will be generated.

.. seealso::

    :meth:`_engine.Connection.begin`

    :meth:`_engine.Connection.begin_twophase`



Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé