DBIx::Class::Cursor - Abstract object representing a query cursor on a resultset.
my $cursor = $schema->resultset('CD')->cursor(); my $first_cd = $cursor->next;
A Cursor represents a query cursor on a DBIx::Class::ResultSet object. It allows for traversing the result set with "next", retrieving all results with "all" and resetting the cursor with "reset".
Usually, you would use the cursor methods built into DBIx::Class::ResultSet to traverse it. See "next" in DBIx::Class::ResultSet, "reset" in DBIx::Class::ResultSet and "all" in DBIx::Class::ResultSet for more information.
Virtual method. Returns a new DBIx::Class::Cursor object.
Virtual method. Advances the cursor to the next row.
Virtual method. Resets the cursor to the beginning.
Virtual method. Returns all rows in the DBIx::Class::ResultSet.
To install DBIx::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class
CPAN shell
perl -MCPAN -e shell install DBIx::Class
For more information on module installation, please visit the detailed CPAN module installation guide.