X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCursor.pm;h=2031ac4994159af70f1ece2004563b974a322010;hb=fcf32d045;hp=2edf6f6f18697ffef29c04209ab05bc3c1bc537b;hpb=5cf243f6632e706c6f2ddbdeccc29f2a5e6ac362;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Cursor.pm b/lib/DBIx/Class/Cursor.pm index 2edf6f6..2031ac4 100644 --- a/lib/DBIx/Class/Cursor.pm +++ b/lib/DBIx/Class/Cursor.pm @@ -3,6 +3,8 @@ package DBIx::Class::Cursor; use strict; use warnings; +use base qw/DBIx::Class/; + =head1 NAME DBIx::Class::Cursor - Abstract object representing a query cursor on a @@ -11,7 +13,12 @@ resultset. =head1 SYNOPSIS my $cursor = $schema->resultset('CD')->cursor(); - my $first_cd = $cursor->next; + + # 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; =head1 DESCRIPTION @@ -28,8 +35,6 @@ information. =head2 new -=back - Virtual method. Returns a new L object. =cut @@ -40,9 +45,8 @@ sub new { =head2 next -=back - -Virtual method. Advances the cursor to the next result. +Virtual method. Advances the cursor to the next row. Returns an array of +column values (the result of L method). =cut @@ -52,8 +56,6 @@ sub next { =head2 reset -=back - Virtual method. Resets the cursor to the beginning. =cut @@ -64,9 +66,7 @@ sub reset { =head2 all -=back - -Virtual method. Returns all results in the L. +Virtual method. Returns all rows in the L. =cut