The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Class::DBI::Plugin::Iterator - new Iterator for Class::DBI

SYNOPSIS

  package CD;
  use base qw(Class::DBI);
  __PACKAGE__->set_db(...);
  
  use Class::DBI::Plugin::Iterator;    # just it
  
  package main;
  use CD;
  my $itr = CD->retrieve_all;
  my @discs = $itr->slice(0,9);
  
  my $new_it = $itr->slice(10,19);

DESCRIPTION

OPTION

prefetch

  use Class::DBI::Plugin::Iterator prefetch => 5;

driver

  use Class::DBI::Plugin::Iterator driver => 'mysql4';

NOTES

AUTHOR

Takuji ASAKURA, <asakura@weakpoint.jpn.org>

SEE ALSO

Class::DBI, Class::DBI::Iterator