in reply to DBIx::Class connection
You could pass a sub instead of plain connection variable and do whatever you want there.
$schema= My::Schema->connect(sub{ # Prep/config load. my $dbh = DBI->connect... # Do your logging. return $dbh; }
I'm not sure it's the easiest/sanest way. It feels like the wrong place to do it to me. Perhaps you want some permutation of DBI->trace instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBIx::Class connection
by tinita (Parson) on Jan 03, 2011 at 01:11 UTC | |
|
Re^2: DBIx::Class connection
by morgon (Priest) on Jan 03, 2011 at 01:22 UTC | |
by Your Mother (Archbishop) on Jan 03, 2011 at 03:26 UTC | |
|
Re^2: DBIx::Class connection
by ribasushi (Pilgrim) on Mar 25, 2013 at 12:05 UTC |