The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CPAN::Testers::Schema::ResultSet::Upload - Query the CPAN uploads data

VERSION

version 0.027

SYNOPSIS

    my $rs = $schema->resultset( 'Upload' );
    $rs->by_dist( 'My-Dist' );
    $rs->by_author( 'PREACTION' );
    $rs->since( '2016-01-01T00:00:00' );

DESCRIPTION

This object helps to query the CPAN uploads table. This table tracks uploads to CPAN by distribution, version, and author, and also flags distributions that have been deleted from CPAN (and are thus only available on BackPAN).

METHODS

by_dist

    $rs = $rs->by_dist( 'My-Dist' );

Add a dist constraint to the query, replacing any previous dist constraints.

by_author

    $rs = $rs->by_author( 'PREACTION' );

Add an author constraint to the query, replacing any previous author constraints.

since

    $rs = $rs->since( '2016-01-01T00:00:00' );

Restrict results to only those that have been updated since the given ISO8601 date.

recent

    # 20 most recent
    $rs = $rs->recent( 20 );

    # Just the most recent
    $rs = $rs->recent( 1 );

Return the most-recently released distributions sorted by their release date/time, descending. Defaults to returning up to 20 results.

latest_by_dist

Return the dist/version pair for the latest version of all dists selected by the current resultset.

SEE ALSO

CPAN::Testers::Schema::Result::Upload, DBIx::Class::ResultSet, CPAN::Testers::Schema

AUTHORS

  • Oriol Soriano <oriolsoriano@gmail.com>

  • Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 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.