DBIx::Class::Storage::DBI::Role::QueryCounter(3pm)

DBIx::Class::Storage::DBI::Role::QueryCounter3pm

Role to add a query counter

Usage

    my $query_count = $schema->storage->query_count;

Overview

Each time the schema does a query, increment the counter.

Attributes

This package defines the following attributes.

_query_count

Is the attribute holding the current query count. It defines a public reader called 'query_count' which you can use to access the total number of queries that DBIC has run since connection.

Methods

This module defines the following methods.

_query_start

Override on the method so that we count the queries.

_increment_query_count

Used internally. You won't need this unless you enjoy messing with the query count.

Authors

See DBIx::Class for more information regarding authors.

License

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

From libdbix-class-perl 0.08123-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.