[Catalyst] Re: sql debugging hooks
Minty
mintywalker at gmail.com
Sat Jul 11 18:47:29 GMT 2009
> But I want to inject my $debugger via the Model or schema, and
> enable/disable it globablly via a configuration file flag.
What I meant to say was I want to inject my custom debugobj handler
globally (at least in development), then simplify the code in the
Controllers to just:
$model->result_source->storage->debug(1);
my $employee = $mode->find(123);
$model->result_source->storage->debug(0);
When I want to debug that one particular query.
More information about the Catalyst
mailing list