[Catalyst] getting the db connection used by catalyst

Daniel McBrearty danielmcbrearty at gmail.com
Wed Oct 4 17:44:28 CEST 2006


ok. thanks.

what is the magic? is its behaviour in one of the perldocs?

On 10/4/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> Daniel McBrearty wrote:
> > I have. Could do it either way, but on the whole I prefer to seperate the two.
> >
> > Even if I did that, I think I'd have the same question - how to get a
> > connection without creating a new one.
>
> $storage->dbh
>
> DO NOT CACHE THAT
>
> Grab it each time, then you benefit from all of DBIC's reconnection magic.
>
> --
>       Matt S Trout       Offering custom development, consultancy and support
>    Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
> Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information
>
> + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list