my $query_count = $schema->storage->query_count;
DESCRIPTIONEach time the schema does a query, increment the counter.
ATTRIBUTESThis package defines the following attributes.
_query_countIs 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.
METHODSThis module defines the following methods.
_query_startOverride on the method so that we count the queries.
_increment_query_countUsed internally. You won't need this unless you enjoy messing with the query count.
AUTHORSSee DBIx::Class for more information regarding authors.
LICENSEYou may distribute this code under the same terms as Perl itself.