1DBIx::Class::Storage::DUBsIe:r:CCuornstorri(b3u)ted PerlDBDIoxc:u:mCelnatsast:i:oSntorage::DBI::Cursor(3)
2
3
4

NAME

6       DBIx::Class::Storage::DBI::Cursor - Object representing a query cursor
7       on a resultset.
8

SYNOPSIS

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

DESCRIPTION

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

METHODS

29   new
30       Returns a new DBIx::Class::Storage::DBI::Cursor object.
31
32   next
33       Arguments: none
34       Return Value: \@row_columns
35
36       Advances the cursor to the next row and returns an array of column
37       values (the result of "fetchrow_array" in DBI method).
38
39   all
40       Arguments: none
41       Return Value: \@row_columns+
42
43       Returns a list of arrayrefs of column values for all rows in the
44       DBIx::Class::ResultSet.
45
46   reset
47       Resets the cursor to the beginning of the DBIx::Class::ResultSet.
48

FURTHER QUESTIONS?

50       Check the list of additional DBIC resources.
51
53       This module is free software copyright by the DBIx::Class (DBIC)
54       authors. You can redistribute it and/or modify it under the same terms
55       as the DBIx::Class library.
56
57
58
59perl v5.34.0                      2022-01-2D1BIx::Class::Storage::DBI::Cursor(3)
Impressum