1 package DBIx::Class::Cursor;
6 use base qw/DBIx::Class/;
10 DBIx::Class::Cursor - Abstract object representing a query cursor on a
15 my $cursor = $schema->resultset('CD')->cursor();
16 my $first_cd = $cursor->next;
20 A Cursor represents a query cursor on a L<DBIx::Class::ResultSet> object. It
21 allows for traversing the result set with L</next>, retrieving all results with
22 L</all> and resetting the cursor with L</reset>.
24 Usually, you would use the cursor methods built into L<DBIx::Class::ResultSet>
25 to traverse it. See L<DBIx::Class::ResultSet/next>,
26 L<DBIx::Class::ResultSet/reset> and L<DBIx::Class::ResultSet/all> for more
33 Virtual method. Returns a new L<DBIx::Class::Cursor> object.
38 die "Virtual method!";
43 Virtual method. Advances the cursor to the next row. Returns an array of
44 column values (the result of L<DBI/fetchrow_array> method).
49 die "Virtual method!";
54 Virtual method. Resets the cursor to the beginning.
59 die "Virtual method!";
64 Virtual method. Returns all rows in the L<DBIx::Class::ResultSet>.
72 while (my @row = $self->next) {