On 14.08.2007 20:37 Bill Moseley wrote: > 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. >
I didn't read it in your sense. I read failure as _database_ failure not as die. But if it uses eval, your interpretation could be right, so perhaps I should have a closer look... Thanks, - Michael ------------------------------------------------------------------------- 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