- changed watchers to benno@jeamland.net
two phase commit support in Engine/Connection + implementation for postgres
a patch discussed on the mailing list.
Comments (5)
-
reporter -
Account Deleted Replying to zzzeek:
this patch also needs a
prepare()
method added toTransaction
, and a call toprepare()
withinSessionTransaction
if multiple engines are present.That should already be there.
lets also consider adding an explicit
prepare()
toSessionTransaction
which for example can be used by Zalchemy in its two-phase implementation.prepare()
should actually perform all flush() operations as well as callprepare()
on all its storedTransactions
.I can sort this out and re-submit if you'd like.
-
reporter - changed milestone to 0.5.0
-
Account Deleted (original author: ants) Support for two phase commit added in 2896. Currently works for MySQL and Postgresql.
API:
transaction = connection.begin_twophase() # do work transaction.prepare() # prepare other work transaction.commit()
Still needs slight adjustments to support XA transaction branch qualifiers.
-
reporter - removed milestone
Removing milestone: 0.4.0 (automated comment)
- Log in to comment
this patch also needs a
prepare()
method added toTransaction
, and a call toprepare()
withinSessionTransaction
if multiple engines are present.lets also consider adding an explicit
prepare()
toSessionTransaction
which for example can be used by Zalchemy in its two-phase implementation.prepare()
should actually perform all flush() operations as well as callprepare()
on all its storedTransactions
.