DBIx::Class::Storage::Statistics - SQL Statistics
This class is called by DBIx::Class::Storage::DBI as a means of collecting statistics on it's actions. Using this class alone merely prints the SQL executed, the fact that it completes and begin/end notification for transactions.
To really use this class you should subclass it and create your own method for collecting the statistics as discussed in DBIx::Class::Manual::Cookbook.
Returns a new DBIx::Class::Storage::Statistics object.
Sets or retrieves the filehandle used for trace/debug output. This should be an IO::Handle compatible object (only the print method is used). Initially should be set to STDERR - although see information on the DBIC_TRACE environment variable.
Prints the specified string to our debugging filehandle, which we will attempt to open if we haven't yet. Provided to save our methods the worry of how to display the message.
Called when a transaction begins.
Called when a transaction is rolled back.
Called when a transaction is committed.
Called when a savepoint is created.
Called when a savepoint is released.
Called when rolling back to a savepoint.
Called before a query is executed. The first argument is the SQL string being executed and subsequent arguments are the parameters used for the query.
Called when a query finishes executing. Has the same arguments as query_start.
get_component_class, get_inherited, get_simple, get_super_paths, make_group_accessor, make_group_ro_accessor, make_group_wo_accessor, mk_group_accessors, mk_group_ro_accessors, mk_group_wo_accessors, set_component_class, set_inherited, set_simple
Cory G. Watson <gphat@cpan.org>
You may distribute this code under the same license as Perl itself.
Last modified:
POD_DERIVED_INDEX_GENERATED The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with DBIx::Class::Storage::Statistics at blib/lib/DBIx/Class/Storage/Statistics.pm (on the system that originally ran this). If you do edit this file, and don't want your changes to be removed, make sure you change the first line.