1DBIx::Class::Storage::SUtsaetrisCtoinctsr(i3b)uted PerlDDBoIcxu:m:eCnltaastsi:o:nStorage::Statistics(3)
2
3
4

NAME

6       DBIx::Class::Storage::Statistics - SQL Statistics
7

SYNOPSIS

DESCRIPTION

10       This class is called by DBIx::Class::Storage::DBI as a means of
11       collecting statistics on its actions.  Using this class alone merely
12       prints the SQL executed, the fact that it completes and begin/end
13       notification for transactions.
14
15       To really use this class you should subclass it and create your own
16       method for collecting the statistics as discussed in
17       DBIx::Class::Manual::Cookbook.
18

METHODS

20   new
21       Returns a new DBIx::Class::Storage::Statistics object.
22
23   debugfh
24       Sets or retrieves the filehandle used for trace/debug output.  This
25       should be an IO::Handle compatible object (only the "print" method is
26       used). Initially should be set to STDERR - although see information on
27       the DBIC_TRACE environment variable.
28
29   print
30       Prints the specified string to our debugging filehandle, which we will
31       attempt to open if we haven't yet.  Provided to save our methods the
32       worry of how to display the message.
33
34   silence
35       Turn off all output if set to true.
36
37   txn_begin
38       Called when a transaction begins.
39
40   txn_rollback
41       Called when a transaction is rolled back.
42
43   txn_commit
44       Called when a transaction is committed.
45
46   svp_begin
47       Called when a savepoint is created.
48
49   svp_release
50       Called when a savepoint is released.
51
52   svp_rollback
53       Called when rolling back to a savepoint.
54
55   query_start
56       Called before a query is executed.  The first argument is the SQL
57       string being executed and subsequent arguments are the parameters used
58       for the query.
59
60   query_end
61       Called when a query finishes executing.  Has the same arguments as
62       query_start.
63

AUTHORS

65       Cory G. Watson <gphat@cpan.org>
66

LICENSE

68       You may distribute this code under the same license as Perl itself.
69
70
71
72perl v5.12.0                      2010-05-12DBIx::Class::Storage::Statistics(3)
Impressum