NAME

Aniki::Result::Collection - Rows as a collection

SYNOPSIS

    my $result = $db->select(foo => { bar => 1 });
    for my $row ($result->all) {
        print $row->id, "\n";
    }

DESCRIPTION

This is collection result class.

INSTANCE METHODS

rows()

Returns rows as array reference.

count()

Returns rows count.

first()

Returns first row.

last()

Returns last row.

all()

Returns rows as array.

ACCESSORS

handler : Aniki
table_name : Str
suppress_row_objects : Bool
row_class : ClassName
row_datas : ArrayRef[HashRef]
inflated_rows : ArrayRef[Aniki::Row]

LICENSE

Copyright (C) karupanerura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

karupanerura <karupa@cpan.org>