Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    DBIx::Class::QueryLog 1.3.2

    Download button

    No screenshots available
    Downloads: 97  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Cory G Watson | More programs
    Perl Artistic License / FREE
    May 12th, 2012, 00:29 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    DBIx::Class::QueryLog description

    Log queries for later analysis

    DBIx::Class::QueryLog is a Perl module that 'logs' each transaction and query executed so you can analyze what happened in the 'session'. It must be installed as the debugobj in DBIx::Class:

     use DBIx::Class::QueryLog;
     use DBIx::Class::QueryLog::Analyzer;
     
     my $schema = ... # Get your schema!
     my $ql = DBIx::Class::QueryLog->new;
     $schema->storage->debugobj($ql);
     $schema->storage->debug(1);
     ... # do some stuff!
     my $ana = DBIx::Class::QueryLog::Analyzer->new({ querylog => $ql });
     my @queries = $ana->get_sorted_queries;


    Every transaction and query executed will have a corresponding Transaction and Query object stored in order of execution, like so:

     Query
     Query
     Transaction
     Query


    This array can be retrieved with the log method. Queries executed inside a transaction are stored inside their Transaction object, not inside the QueryLog directly.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    log queries | Perl module | Perl | queries | logging

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM