On Tue, Aug 14, 2007 at 08:28:40PM +0200, Michael Lackhoff wrote: > > Have you also looked at Roes::DB's do_transaction() ? > > I know that this is another possible variant but because there is so > much code I didn't want to squeeze it into a single call. It would do > after some reorganization but I don't think there is much difference > between begin_work/commit and do_transaction, at least the docs don't > mention it, so I didn't try.
The difference is you can do what you had in your example -- die and have an automatic rollback. >From the docs: There's also a method ("do_transaction") that will execute arbitrary code within a single transaction, automatically handling rollback on failure and commit on success. You can do that with mod_perl as Perrin explained. But that depends on you working with mod_perl. Just another option. -- Bill Moseley [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object