DBIx::C...::Cursor(3)
π NAME π
DBIx::Class::Cursor β Abstract object representing a query cursor on a resultset. Okay bestie, this is the DBIx::Class::Cursor(3) page from User Contributed Perl Documentation, and it's giving tiny abstract cursor energy in the best way. The header/footer abbreviates it as DBIx::C...::Cursor(3) β same page, no cap. π
β¨ SYNOPSIS β¨
my $cursor = $schema->resultset('CD')->cursor();
# raw values off the database handle in resultset columns/select order
my @next_cd_column_values = $cursor->next;
# list of all raw values as arrayrefs
my @all_cds_column_values = $cursor->all;
π¦ DESCRIPTION π¦
A Cursor represents a query cursor on a DBIx::Class::ResultSet object. It lets you traverse the result set with next, grab all the results with all, and reset the cursor with reset. Literally the little remote control for your query, iykyk. π
Usually, you'd 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. That's the group chat you wanna be in for the full tea. π«
π οΈ METHODS π οΈ
π± new
Virtual method. Returns a new DBIx::Class::Cursor object. Periodt. β¨
βοΈ next
Virtual method. Advances the cursor to the next row. Returns an array of column values (the result of fetchrow_array in DBI method). Next bestie, next! βοΈ
π reset
Virtual method. Resets the cursor to the beginning. Back to the start, no drama. π
π all
Virtual method. Returns all rows in the DBIx::Class::ResultSet. All of them, babe. π
π FURTHER QUESTIONS? π
Check the list of additional DBIC resources. Go off, bestie β the resources are there for you. β¨
π COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library. Respect the license, queen. π
Catch you later β this page was brought to you by perl v5.42.0, dated 2025-01-22, and titled DBIx::C...::Cursor(3). Bye bestie! π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms