1DBIx::Class::Cursor(3)User Contributed Perl DocumentationDBIx::Class::Cursor(3)
2
3
4
6 DBIx::Class::Cursor - Abstract object representing a query cursor on a
7 resultset.
8
10 my $cursor = $schema->resultset('CD')->cursor();
11
12 # raw values off the database handle in resultset columns/select order
13 my @next_cd_column_values = $cursor->next;
14
15 # list of all raw values as arrayrefs
16 my @all_cds_column_values = $cursor->all;
17
19 A Cursor represents a query cursor on a DBIx::Class::ResultSet object.
20 It allows for traversing the result set with "next", retrieving all
21 results with "all" and resetting the cursor with "reset".
22
23 Usually, you would use the cursor methods built into
24 DBIx::Class::ResultSet to traverse it. See "next" in
25 DBIx::Class::ResultSet, "reset" in DBIx::Class::ResultSet and "all" in
26 DBIx::Class::ResultSet for more information.
27
29 new
30 Virtual method. Returns a new DBIx::Class::Cursor object.
31
32 next
33 Virtual method. Advances the cursor to the next row. Returns an array
34 of column values (the result of "fetchrow_array" in DBI method).
35
36 reset
37 Virtual method. Resets the cursor to the beginning.
38
39 all
40 Virtual method. Returns all rows in the DBIx::Class::ResultSet.
41
43 Check the list of additional DBIC resources.
44
46 This module is free software copyright by the DBIx::Class (DBIC)
47 authors. You can redistribute it and/or modify it under the same terms
48 as the DBIx::Class library.
49
50
51
52perl v5.36.0 2023-01-20 DBIx::Class::Cursor(3)