From: Rafael Kitover Date: Sun, 26 Aug 2012 16:21:37 +0000 (-0400) Subject: fix Cursor SYNOPSIS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c564f8c36d35c7835200ddc32fc74849e5678779;p=dbsrgits%2FDBIx-Class-Historic.git fix Cursor SYNOPSIS --- diff --git a/lib/DBIx/Class/Cursor.pm b/lib/DBIx/Class/Cursor.pm index 14816ab..2031ac4 100644 --- a/lib/DBIx/Class/Cursor.pm +++ b/lib/DBIx/Class/Cursor.pm @@ -13,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 diff --git a/lib/DBIx/Class/Storage/DBI/Cursor.pm b/lib/DBIx/Class/Storage/DBI/Cursor.pm index bf17e90..e4f7d39 100644 --- a/lib/DBIx/Class/Storage/DBI/Cursor.pm +++ b/lib/DBIx/Class/Storage/DBI/Cursor.pm @@ -20,7 +20,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