DBIx::Class::Cursor - Abstract object representing a query cursor on a resultset.


NAME

DBIx::Class::Cursor - Abstract object representing a query cursor on a resultset.


SYNOPSIS

  my $cursor = $schema->resultset('CD')->cursor();
  my $first_cd = $cursor->next;


DESCRIPTION

A Cursor represents a query cursor on a the DBIx::Class::ResultSet manpage 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 the DBIx::Class::ResultSet manpage to traverse it. See next in the DBIx::Class::ResultSet manpage, reset in the DBIx::Class::ResultSet manpage and all in the DBIx::Class::ResultSet manpage for more information.


METHODS

new

Virtual method. Returns a new the DBIx::Class::Cursor manpage object.

next

Virtual method. Advances the cursor to the next row. Returns an array of column values (the result of fetchrow_array in the DBI manpage method).

reset

Virtual method. Resets the cursor to the beginning.

all

Virtual method. Returns all rows in the the DBIx::Class::ResultSet manpage.

 DBIx::Class::Cursor - Abstract object representing a query cursor on a resultset.