NAME

DBIx::Thin::Row - DBIx::Thin's Row class

SYNOPSIS

my $user = Your::Model->find_by_pk('user', 1);
# $user is an instance of sub-class of DBIx::Thin::Row
print 'id: ', $user->id, "\n";
print 'name: ', $user->name, "\n";

ACCESSORS

DBIx::Thin::Row generates accessors for selected columns.

METHODS

get_value($column)

Get a column value from a row object without inflating.

EXAMPLE

my $id = $row->get_value('id');

get_values()

Does get_value, for all column values.

my %data = $row->get_values;

as_hash()

Returns a hash contains all column data (with inflating).

my %hash = $row->as_hash;
### (id => 123, name => 'hoge', ...)

set(%values)

Set columns data.

$row->set($column => $value);

get_dirty_columns()

Returns those that have been changed.

create

insert row data. call find_or_create method.

update

update is executed for instance record.

It works by schema in which primary key exists.

delete

delete is executed for instance record.

It works by schema in which primary key exists.