| DBIx::Thin::Row - DBIx::Thin's Row class |
DBIx::Thin::Row - DBIx::Thin's Row class
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";
DBIx::Thin::Row generates accessors for selected columns.
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;
set(%values)set columns data.
$row->set($column => $value);
get_dirty_columns()Returns those that have been changed.
insert row data. call find_or_create method.
update is executed for instance record.
It works by schema in which primary key exists.
delete is executed for instance record.
It works by schema in which primary key exists.
| DBIx::Thin::Row - DBIx::Thin's Row class |