Some of the information here may be outdated, please check the book instead
[edit]

In web2py, if you do multiple inserts/update/select in a controller function, web2py will commit all of them when the function returns unless there is an uncaught exception. In this case it will rollback all of them before issuing a ticket.

You have the option to

db.commit()

and

db.rollback()

anywhere you please.

© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.