[Catalyst] Catalyst::Model::DBIC::Schema - Print Debug statement

Eden Cardim edencardim at gmail.com
Fri Dec 3 12:47:43 GMT 2010


>>>>> "Blaine" == Blaine Everingham <grandmasterblaine at hotmail.com> writes:

    Blaine> I'm trying to see the queries the actual query code that is
    Blaine> submitted to the database when I perform a find on a model.
    Blaine> I've tried:

    Blaine> 1) Adding $ENV{DBIC_TRACE}++ to the MyApp.pm

You need to set it before the storage object is constructed, namely,
it should work if you place it before the call to MyApp->setup

-- 
     Eden Cardim            Need help with your perl Catalyst or DBIx::Class project?
   Software Engineer                   http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.        Want a managed development or deployment platform?
http://blog.edencardim.com             http://www.shadowcat.co.uk/servers/



More information about the Catalyst mailing list