Catalyst::TraitFor::Model::DBIC :: Schema::QueryLog::AdoptPlack

Use a Plack Middleware QueryLog
Download

Catalyst::TraitFor::Model::DBIC :: Schema::QueryLog::AdoptPlack Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John Napiorkowski
  • Publisher web site:
  • http://search.cpan.org/~jjnapiork/

Catalyst::TraitFor::Model::DBIC :: Schema::QueryLog::AdoptPlack Tags


Catalyst::TraitFor::Model::DBIC :: Schema::QueryLog::AdoptPlack Description

Catalyst::TraitFor::Model::DBIC::Schema::QueryLog::AdoptPlack is a trait for Catalyst::Model::DBIC::Schema which adopts a Plack created DBIx::Class::QueryLog and logs SQL for a given request cycle. It is intended to be compatible with Catalyst::TraitFor::Model::DBIC::Schema::QueryLog which you may already be using.It picks up the querylog from $env->{'plack.middleware.dbic.querylog'} or from $env->{'plack.middleware.debug.dbic.querylog'} which is generally provided by the Plack middleware Plack::Middleware::Debug::DBIC::QueryLog In fact you will probably use these two modules together. Please see the documentation in Plack::Middleware::Debug::DBIC::QueryLog for an example.PLEASE NOTE: Starting with the 0.04 version of Plack::Middleware::Debug::DBIC::QueryLog we will canonicalize on $env->{'plack.middleware.dbic.querylog'}. For now both listed keys will work, but within a release or two the older key will warn and prompt you to upgrade your version of Plack::Middleware::Debug::DBIC::QueryLog. Sorry for the trouble.SYNOPSIS package MyApp::Web::Model::Schema; use parent 'Catalyst::Model::DBIC::Schema'; __PACKAGE__->config({ schema_class => 'MyApp::Schema', traits => , ## .. rest of configuration });Product's homepage


Catalyst::TraitFor::Model::DBIC :: Schema::QueryLog::AdoptPlack Related Software