Atsushi Kobayashi > DBIx-Class-QueriesTime-0.01 > DBIx::Class::QueriesTime

Download:
DBIx-Class-QueriesTime-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

DBIx::Class::QueriesTime - Get your query's time.

VERSION ^

This documentation refers to DBIx::Class::QueriesTime version 0.01

SYNOPSIS ^

  package YourDB;
  
  use strict;
  use warnings;
  use base 'DBIx::Class';
  
  __PACKAGE__->load_components(qw/Core DB QueriesTime/);

and your script

  #! /usr/bin/perl
  
  use strict;
  use warnings;
  use YourDB;

  YourDB->storage->debug(1);
  YourDB->storage->debugfh(IO::File->new('/tmp/trace.out', '>>'));

your query and query's time output trace file:

  SELECT me.id, me.name FROM Authors me WHERE ( name = ? ): nekokak
  ->Query Time: 0.287087

DESCRIPTION ^

DBIx::Class::QueriesTime is Extension to DBIx::Class. DBIx::Class::QueriesTime get your query's time. DBIx::Class::QueriesTime is redefine DBIx::Class::Storage::DBI::_execute.

DEPENDENCIES ^

DBIx::Class

Time::HiRes

BUGS AND LIMITATIONS ^

There are no known bugs in this module. Please report problems to Atsushi Kobayashi (<nekokak@cpan.org>) Patches are welcome.

SEE ALSO ^

DBIx::Class

Time::HiRes

AUTHOR ^

Atsushi Kobayashi, <nekokak@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2006 by Atsushi Kobayashi (<nekokak@cpan.org>). All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: