Merge 'trunk' into 'DBIx-Class-C3'
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / Cursor.pm
CommitLineData
1923c0b4 1package DBIx::Class::Cursor;
2
3use strict;
4use warnings;
1923c0b4 5
6sub new {
28927b50 7 die "Virtual method!";
1923c0b4 8}
9
10sub next {
28927b50 11 die "Virtual method!";
1923c0b4 12}
13
14sub reset {
28927b50 15 die "Virtual method!";
1909f72b 16}
17
1a14aa3f 18sub all {
19 my ($self) = @_;
20 $self->reset;
21 my @all;
22 while (my @row = $self->next) {
23 push(@all, \@row);
24 }
25 $self->reset;
26 return @all;
27}
28
1923c0b4 291;