[Dbix-class] Access to the database connection object

Thomas Klausner domm at cpan.org
Mon Jun 19 09:50:44 CEST 2006


On Mon, Jun 19, 2006 at 05:06:51PM +1000, brett gardner wrote:
> Is there anyway to get access to the database connection object used by 
> Storage to run a literal sql command.

I think it's $db->storage->dbh
(at least that's what I'm using for some time now..)

#!/usr/bin/perl                               http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

More information about the Dbix-class mailing list