1DBIx::Class::Cursor(3)User Contributed Perl DocumentationDBIx::Class::Cursor(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

14       A Cursor represents a query cursor on a DBIx::Class::ResultSet object.
15       It allows for traversing the result set with "next", retrieving all
16       results with "all" and resetting the cursor with "reset".
17
18       Usually, you would use the cursor methods built into
19       DBIx::Class::ResultSet to traverse it. See "next" in
20       DBIx::Class::ResultSet, "reset" in DBIx::Class::ResultSet and "all" in
21       DBIx::Class::ResultSet for more information.
22

METHODS

24   new
25       Virtual method. Returns a new DBIx::Class::Cursor object.
26
27   next
28       Virtual method. Advances the cursor to the next row. Returns an array
29       of column values (the result of "fetchrow_array" in DBI method).
30
31   reset
32       Virtual method. Resets the cursor to the beginning.
33
34   all
35       Virtual method. Returns all rows in the DBIx::Class::ResultSet.
36
37
38
39perl v5.12.0                      2010-05-12            DBIx::Class::Cursor(3)
Impressum