NAME

Aniki::Row - Row class

SYNOPSIS

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

DESCRIPTION

This is row class.

INSTANCE METHODS

$column()

Autoload column name method to $row->get($column).

$relay()

Autoload relationship name method to $row->relay($column).

get($column)

Returns column data.

relay($name)

Returns related data. If not yet cached, call relay_fetch.

relay_fetch($name)

Fetch related data, and returns related data.

is_prefetched($name)

If a pre-fetch has been executed, it return a true value.

get_column($column)

Returns column data without inflate filters.

get_columns()

Returns columns data as hash reference.

refetch()

ACCESSORS

handler : Aniki
schema : Aniki::Schema
table : Aniki::Schema::Table
filter : Aniki::Filter
table_name : Str
is_new : Bool
row_data : HashRef
relay_data : HashRef

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>