in reply to Re^4: How to share DBI connections between objects?
in thread How to share DBI connections between objects?

I've been meaning to read up on Rose::DB, so this seems a sensible time to do it.

In my implementation My->Db did actually get it's connect info from My->get_config('db'); but that still does not allow individual things within My to get connections to other databases, or to allow for injecting of mock database objects for testing without nastyness.

hrm, good thing you mentioned it adrianh, or I'd just have kept plodding along with this implementation.

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;