++ed by:
ABRAXXA

1 PAUSE user

Arthur Axel "fREW" Schmidt
and 2 contributors

NAME

DBIx::Class::QueryLog::Transaction - A Transaction

VERSION

version 1.005001

SYNOPSIS

Represents a transaction. All queries executed with the context of this transaction are stored herein, as well as a start time, end time and flag for committed or rolledback.

METHODS

new

Create a new DBIx::Class::QueryLog::Transcation

bucket

The bucket this tranaction is in.

queries

Arrayref containing all queries executed, in order of execution.

committed

Flag indicating if this transaction was committed.

rolledback

Flag indicating if this transaction was rolled back.

start_time

Time this transaction started.

end_time

Time this transaction ended.

time_elapsed

Time this transaction took to execute. start - end.

add_to_queries

Add the provided query to this transactions list.

count

Returns the number of queries in this Transaction

get_sorted_queries([ $sql ])

Returns all the queries in this Transaction, sorted by elapsed time. (descending).

If given an argument of an SQL statement, only queries matching that statement will be considered.

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.