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::Iterator(3) User Contributed Perl Documentation DBIx::Skinny::Iterator(3)

DBIx::Skinny::Iterator

skinny iteration class.

  my $itr = Your::Model->search('user',{});
  
  $itr->count; # show row counts
  
  my $row = $itr->first; # get first row
  
  $itr->reset; # reset itarator position
  
  my @rows = $itr->all; # get all rows
  
  # do iteration
  while (my $row = $itr->next) { }

  # no cache row object (save memories)
  $itr->cache(0);
  while (my $row = $itr->next) { }
  $itr->reset->first;  # Can't fetch row!

$itr->first
get first row data.
$itr->next
get next row data.
$itr->all
get all row data.
$itr->reset
this method reset iterator position number.
$itr->count
The number of lines that iterator has are returned.
$itr->no_cache # has been deprecated
$itr->cache($mode)
DBIx::Skinny::Itarator is default row data cache. this method specified that it doesn't cache row data or not.

if $mode is false, it doesn't cache row data. $mode is true, it dose cache row data.

$itr->position
get iterator current position number.
$itr->suppress_objects($mode)
set row object creation mode.

Hey! The above document had some coding errors, which are explained below:
Around line 154:
=over without closing =back
2011-02-06 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.