NAME

DBIx::Class::QueryLog::Query - A Query

VERSION

version 1.005001

SYNOPSIS

Represents a query. The sql, parameters, start time and end time are stored.

METHODS

bucket

The bucket this query is in.

start_time

Time this query started.

end_time

Time this query ended.

sql

SQL for this query.

params

Parameters used with this query.

time_elapsed

Time this query took to execute. start - end.

count

Returns 1. Exists to make it easier for QueryLog to get a count of queries executed.

queries

Returns this query, here to make QueryLog's job easier.

get_sorted_queries

Returns this query. Here to make QueryLog's job easier.

AUTHORS

  • Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>

  • Cory G Watson <gphat at cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Cory G Watson <gphat at cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.