CPAN::Testers::Schema::ResultSet::Stats - Query the raw test reports
version 0.012
my $rs = $schema->resultset( 'Stats' ); $rs->insert_test_report( $schema->resultset( 'TestReport' )->first );
This object helps to insert and query the legacy test reports (cpanstats).
my $stat = $rs->insert_test_report( $report );
Convert a CPAN::Testers::Schema::Result::TestReport object to the new test report structure and insert it into the database. This is for creating backwards-compatible APIs.
Returns an instance of CPAN::Testers::Schema::Result::Stats on success. Note that since an uploadid is required for the cpanstats table, this method throws an exception when an upload cannot be determined from the given information.
CPAN::Testers::Schema::Result::Stats, DBIx::Class::ResultSet, CPAN::Testers::Schema
Oriol Soriano <oriolsoriano@gmail.com>
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 by Oriol Soriano, Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPAN::Testers::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Testers::Schema
CPAN shell
perl -MCPAN -e shell install CPAN::Testers::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.