[DB-SIG] Transaction start

M.-A. Lemburg mal@lemburg.com
Mon, 27 May 2002 12:09:26 +0200


Gerhard H=E4ring wrote:
> The DB-API Connection object has commit and rollback methods, but it
> lacks a begin method.
>=20
> Not considering the implementation of an autocommit feature, does this
> mean that the DB-API module must implicitely start, and possibly roll
> back transactions at certain points?
>=20
> I guess a cursor.execute must start a new transaction, where else must =
a
> transaction be started? Could anybody please clarify this?

Transactions, if supported, start implicitly at cursor creation time
and after each call to .commit() or .rollback(). They can span
multiple calls to .execute().

--=20
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/