![]() |
![]()
| ![]() |
![]()
NAMEDBIx::Class::QueryLog::Transaction - A Transaction VERSIONversion 1.005001 SYNOPSISRepresents 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. METHODSnewCreate a new DBIx::Class::QueryLog::Transcation bucketThe bucket this tranaction is in. queriesArrayref containing all queries executed, in order of execution. committedFlag indicating if this transaction was committed. rolledbackFlag indicating if this transaction was rolled back. start_timeTime this transaction started. end_timeTime this transaction ended. time_elapsedTime this transaction took to execute. start - end. add_to_queriesAdd the provided query to this transactions list. countReturns 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 LICENSEThis 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.
|