Arthur Axel "fREW" Schmidt > DBIx-Class-QueryLog-1.005001 > DBIx::Class::QueryLog::Transaction

Download:
DBIx-Class-QueryLog-1.005001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.005001   Source  

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 ^

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.

syntax highlighting: