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
33 Virtual method. Returns a new L<DBIx::Class::Cursor> object.
38 die "Virtual method!";
45 Virtual method. Advances the cursor to the next row.
50 die "Virtual method!";
57 Virtual method. Resets the cursor to the beginning.
62 die "Virtual method!";
69 Virtual method. Returns all rows in the L<DBIx::Class::ResultSet>.
77 while (my @row = $self->next) {