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). By default it is initially set to STDERR - although see
27       discussion of the DBIC_TRACE environment variable.
28
29       Invoked as a getter it will lazily open a filehandle and set it to
30       autoflush (if one is not already set).
31
32   print
33       Prints the specified string to our debugging filehandle.  Provided to
34       save our methods the worry of how to display the message.
35
36   silence
37       Turn off all output if set to true.
38
39   txn_begin
40       Called when a transaction begins.
41
42   txn_rollback
43       Called when a transaction is rolled back.
44
45   txn_commit
46       Called when a transaction is committed.
47
48   svp_begin
49       Called when a savepoint is created.
50
51   svp_release
52       Called when a savepoint is released.
53
54   svp_rollback
55       Called when rolling back to a savepoint.
56
57   query_start
58       Called before a query is executed.  The first argument is the SQL
59       string being executed and subsequent arguments are the parameters used
60       for the query.
61
62   query_end
63       Called when a query finishes executing.  Has the same arguments as
64       query_start.
65

FURTHER QUESTIONS?

67       Check the list of additional DBIC resources.
68
70       This module is free software copyright by the DBIx::Class (DBIC)
71       authors. You can redistribute it and/or modify it under the same terms
72       as the DBIx::Class library.
73
74
75
76perl v5.32.1                      2021-01-27DBIx::Class::Storage::Statistics(3)
Impressum