NAME
DBIx::Meld::Traits::ResultSet::Pager - Provide data paging to result sets.
ATTRIBUTES
pager
my $rs = $meld->resultset('users')->search({}, {page=>2, rows=>50});
my $pager = $rs->pager(); # a pre-populated Data::Page object
A Data::Page object pre-populated based on page() and rows(). If page() has not been specified then trying to access page() will throw a fatal error.
The total_entries and last_page methods are proxied from the pager in to this class so that you can call:
print $rs->total_entries();
Instead of:
print $rs->pager->total_entries();
AUTHOR
Aran Clary Deltac <bluefeet@gmail.com>
LICENSE
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.