in reply to (Moose)? $dbh or DBI connection info - how to abstract
You should take a look at DBIx::Connection because it solves a lot of the issues with handling $dbh instances. I recommend you pass around the DBIx::Connection object, but if you want just the $dbh, you can use Moose coercions to convert a DBIx::Connection object into a $dbh.
|
|---|