Getting benifits of database transactions in an OO way?

ellisjb at my-deja.com ellisjb at my-deja.com
Sun Aug 22 04:17:31 CEST 2004


Leif K-Brooks wrote:
> How would 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).

You'll have to be more specific about why that is a problem for you,
since your example doesn't make that clear.  Is your application
multithreaded?

-Jonathan




More information about the Python-list mailing list