GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DBIx::Skinny::Pager::Logic::PlusOne(3) User Contributed Perl Documentation DBIx::Skinny::Pager::Logic::PlusOne(3)

DBIx::Skinny::Pager::Logic::PlusOne

  package Proj::DB;
  use DBIx::Skinny;

  package main;
  use Proj::DB;

  my $rs = Proj::DB->resultset_with_pager('PlusOne');
  # $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 DBIx::Skinny::Pager::Page::PlusOne.

DBIx::Skinny::Pager::Logic::PlusOne will take limit + 1 record and you can decide next page is exist or not. This logic is good at performance. But, you can't know total records. So, if you want to switch view speedy, see pager class.

Keiji Yoshimi <walf443 at gmail dot com>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2011-05-01 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.