March 2003
Intermediate to advanced
656 pages
39h 30m
English
rollback
x.rollback( )
Rolls back the current transaction in
the database. If the database does not support transactions,
x
.rollback( ) raises an
exception. The DBAPI recommends, but does not mandate, that for
databases that do not support transactions class
Connection supplies no rollback
method, so that x
.rollback( ) raises AttributeError. You can test
whether transaction support is present with
hasattr(
x
,'rollback').
Read now
Unlock full access