1 package # hide from pause
2 DBIx::Class::ResultSet::Pager;
7 # temporary, to load MRO::Compat, will be soon entirely rewritten anyway
8 use DBIx::Class::_Util;
10 use base 'Data::Page';
13 # simple support for lazy totals
14 sub _total_entries_accessor {
15 if (@_ == 1 and ref $_[0]->{total_entries} eq 'CODE') {
16 return $_[0]->{total_entries} = $_[0]->{total_entries}->();
19 return shift->next::method(@_);
22 sub _skip_namespace_frames { qr/^Data::Page/ }