The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

NAME

DBIx::Skinny::Pager::Logic::MySQLFoundRows

SYNOPSIS

  package Proj::DB;
  use DBIx::Skinny;
  use DBIx::Skinny::Mixin modules => ['Pager'];

  package main;
  use Proj::DB;

  my $rs = Proj::DB->resultset_with_pager('MySQLFoundRows');
  # $rs can handle like DBIx::Skinny::SQL.
  $rs->from(['some_table']);
  $rs->add_where('foo' => 'bar');
  $rs->limit(10);
  $rs->offset(20);
  my ($iter, $pager) = $rs->retrieve;
  # $iter is a DBIx::Skinny::Iterator
  # $pager is a Data::Page

DESCRIPTION

DBIx::Skinny::Pager::Logic::MySQLFoundRows is supported mysql only.

AUTHOR

Keiji Yoshimi <walf443 at gmail dot com>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.