NAME
Dezi::Stats::DBI - store Dezi statistics in a database
SYNOPSIS
# see Dezi::Stats
DESCRIPTION
Dezi::Stats::DBI logs statistics to any backend supported by DBI. This class uses DBIx::Connector to manage a persistent DBI connection.
METHODS
init_store()
Sets up the internal database handle (accessible via conn() attribute).
conn
Returns the internal DBIx::Connector object.
insert( hashref )
Writes hashref to the database.
schema
Callable as a function or class method. Returns string suitable for initializing a dezi_stats SQL table.
Example:
perl -e 'use Dezi::Stats::DBI; print Dezi::Stats::DBI::schema' | sqlite3 dezi.index/stats.db
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-dezi-stats at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-Stats. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Dezi::Stats
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2012 Peter Karman.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.