NAME
DBIx::Inline::Result - Class for DBIx::Inline results
load_accessors
Creates all accessors for the current result. So instead of using hashes you can use subroutines.
my $row = $rs->find([], { id => 2 });
$row->load_accessors;
print $row->name . "\n";
print $row->id . "\n";
These accessors can also be used to set new values just by adding arguments.
$row->load_accessors;
$row->notes('Updated notes');
$row->name('My New Name');
accessorize
The same as load_accessors, but will only create the ones you specify. Also, it allows you to name the accessor to whatever you want.
$row->accessorize(
name => 'long_winded_column_name',
status => 'user_status'
);
$row->name; # will fetch $row->{long_winded_column_name};