[Catalyst] CDBI transactions

Andrew Ruthven andrew at etc.gen.nz
Wed Jun 15 10:56:31 CEST 2005


On Wed, 2005-06-15 at 01:14 -0700, Brian Cooke wrote:
> I have a subroutine I've been using for a while to accomplish commit/ 
> rollback in small scopes.  Since I haven't seen a plugin around for  
> that, I thought I'd take the extra step of adapting it as a Catalyst  
> plugin for those using CDBI-based models.  I've done this, and the  
> plugin does seem to work as desired.  A few questions, though:
> 
> I seem to remember some talk--I think it was on the #catalyst daily  
> summaries--of a plugin for transactions.  Is there a plugin or  
> similar functionality I'm not seeing elsewhere?  Has someone already  
> done the work on this?  I don't want to step on anyone's toes.

Hi Brian,

I was mentioned in the daily summaries as volunteering to look
into this as I wanted transactions.  However other commitments
kept me from having time to do anything on this.

What I was after was more wrapping each call to Catalyst up in a
transaction.  So Catalyst would only commit if everything was okay,
otherwise there would be an implicit rollback.

However I see plenty of room for both approaches!

Cheers!




More information about the Catalyst mailing list