[Dbix-class] RootClass DBIx::ContextualFetch

Peter Rabbitson rabbit+dbic at rabbit.us
Sun Sep 27 07:57:18 GMT 2015


On 09/26/2015 07:23 PM, Bill Moseley wrote:
> there's hundreds (if not thousands) of existing individual direct
> DBI calls in the app.

In this case it may be more practicl to invert the relationship - have 
the app manage/obtain the $dbh, and hand it to DBIC via
  ->connect(sub \&something_that_gets_a_connected_dbh_on_every_call )

Cheers




More information about the DBIx-Class mailing list