Getting benifits of database transactions in an OO way?

Paul Rubin http
Sat Aug 21 21:35:23 EDT 2004


Leif K-Brooks <eurleif at ecritters.biz> writes:
> How woould begin_transaction() and finish_transaction() be
> implemented? They couldn't be simple wrappers for PostgreSQL
> transaction handling, since it's not very object-oriented (the whole
> connection has one transaction at a time).

Yes, if you want multiple concurrent transactions, you need separate
connections for them.



More information about the Python-list mailing list