1 package DBIx::Class::Cursor;
8 DBIx::Class::Cursor - Abstract object representing a query cursor on a
13 my $cursor = $schema->resultset('CD')->cursor();
14 my $first_cd = $cursor->next;
18 A Cursor represents a query cursor on a L<DBIx::Class::ResultSet> object. It
19 allows for traversing the result set with L</next>, retrieving all results with
20 L</all> and resetting the cursor with L</reset>.
22 Usually, you would use the cursor methods built into L<DBIx::Class::ResultSet>
23 to traverse it. See L<DBIx::Class::ResultSet/next>,
24 L<DBIx::Class::ResultSet/reset> and L<DBIx::Class::ResultSet/all> for more
31 Virtual method. Returns a new L<DBIx::Class::Cursor> object.
36 die "Virtual method!";
41 Virtual method. Advances the cursor to the next row. Returns an array of
42 column values (the result of L<DBI/fetchrow_array> method).
47 die "Virtual method!";
52 Virtual method. Resets the cursor to the beginning.
57 die "Virtual method!";
62 Virtual method. Returns all rows in the L<DBIx::Class::ResultSet>.
70 while (my @row = $self->next) {