[Catalyst] Re: Sharing a database handle between components

Matt S Trout dbix-class at trout.me.uk
Mon Feb 11 16:30:16 GMT 2008


On Sun, Feb 10, 2008 at 06:39:51PM -0600, Jonathan Rockway wrote:
> * On Sun, Feb 10 2008, Matt S Trout wrote:
> > On Sun, Feb 10, 2008 at 05:41:28AM -0600, Jonathan Rockway wrote:
> >> At some point this pattern will be made easier (see Bread::Board on
> >> CPAN), and perhaps we can write a dbh manager and coerce DBIC to use
> >> it.
> >
> > Stealing the DBIC one and releasing it as a separate dist strikes me as
> > less work.
> 
> Yes, that's what I was thinking, but not what I wrote.  Why can't you
> read my mind?
> 
> As for making DBIC use an external dbh... I will cross that bridge when
> I come to it :)

connect_info => sub { $handler->get_dbh }

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the Catalyst mailing list