NAME

SQLx::Lite::Result - Class for SQLx::Lite results

DESCRIPTION

When you perform a ResultSet search it will return and bless it as a SQLx::Lite::Result, allowing you to perform Result actions on that object.

result

Returns the result arrayref.

for my $row (@{$res->result}) {
    print $row->{mykey} . "\n";
}

count

Returns the number of rows found

update

Uses the result currently set as the result to update it using the arguments defined in the hash.

my $res = $dbh->resultset('foo_table')->search([], { id => 5132 });
if ($res->update({name => 'New Name'})) {
    print "Updated!\n";
}