Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

DBIx::Class::Storage::Statistics
SQL Statistics

DBIx::Class::Storage::Statistics - SQL Statistics


NAME

DBIx::Class::Storage::Statistics - SQL Statistics


SYNOPSIS


DESCRIPTION

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 the DBIx::Class::Manual::Cookbook manpage.


METHODS

new

Returns a new the DBIx::Class::Storage::Statistics manpage object.

debugfh

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.

print

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.

txn_begin

Called when a transaction begins.

txn_rollback

Called when a transaction is rolled back.

txn_commit

Called when a transaction is committed.

query_start

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.

query_end

Called when a query finishes executing. Has the same arguments as query_start.


AUTHORS

Cory G. Watson <gphat@cpan.org>


LICENSE

You may distribute this code under the same license as Perl itself.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy