There's more than one way to do things | |
PerlMonks |
Re: Setting up Class::DBI classes with existing $dbhby hanenkamp (Pilgrim) |
on Dec 09, 2003 at 21:46 UTC ( [id://313558]=note: print w/replies, xml ) | Need Help?? |
You might want to look through the Class::DBI and Ima::DBI documentation, specifically the section called "Dynamic Database Connections" in Class::DBI. You can define your own db_Main() method that returns your DBI connection rather than using set_db() directly. I've never done this, but this should work without a hitch. That is,
In Section
Seekers of Perl Wisdom
|
|