Class::DBI::Iterator man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

Class::DBI::Iterator(3User Contributed Perl DocumentatiClass::DBI::Iterator(3)

NAME
       Class::DBI::Iterator - Iterate over Class::DBI search results

SYNOPSIS
	       my $it = My::Class->search(foo => 'bar');

	       my $results = $it->count;

	       my $first_result = $it->first;
	       while ($it->next) { ... }

	       my @slice = $it->slice(10,19);
	       my $slice = $it->slice(10,19);

	       $it->reset;

	       $it->delete_all;

DESCRIPTION
       Any Class::DBI search (including a has_many method) which returns
       multiple objects can be made to return an iterator instead simply by
       executing the search in scalar context.

       Then, rather than having to fetch all the results at the same time, you
       can fetch them one at a time, potentially saving a considerable amount
       of processing time and memory.

CAVEAT
       Note that there is no provision for the data changing (or even being
       deleted) in the database inbetween performing the search and retrieving
       the next result.

perl v5.14.1			  2005-09-11	       Class::DBI::Iterator(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net