NAME

DBIx::Skinny::Iterator

DESCRIPTION

skinny iteration class.

SYNOPSIS

my $itr = Your::Model->search('user',{});

$itr->count; # show row counts

my $row = $itr->first; # get first row

$itr->reset; # reset itarator potision

my @rows = $itr->all; # get all rows

# do iteration
while (my $row = $itr->next) { }

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

METHODS

$itr-first>

get first row data.

$itr-next>

get next row data.

$itr-all>

get all row data.

$itr-reset>

this method reset iterator potion number.

$itr-count>

The number of lines that iterator has are returned.

$itr-no_cache>

DBIx::Skinny::Itarator is default row data cache. this method specified that it doesn't cache row data.

$itr-potition>

get iterator current potition number.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 135:

Unknown directive: =over4

Around line 137:

'=item' outside of any '=over'

=over without closing =back

Around line 166:

Unknown directive: =over4