File: LimitXY.pm

package info (click to toggle)
libclass-dbi-plugin-pager-perl 0.566-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: perl: 381; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package Class::DBI::Plugin::Pager::LimitXY;
use strict;
use warnings;

use base 'Class::DBI::Plugin::Pager';

sub make_limit {
    my ( $self ) = @_;

    my $offset = $self->skipped;
    my $rows   = $self->entries_per_page;

    return "LIMIT $offset, $rows";
}

1;