The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DBIx::StORM::Record

DESCRIPTION

A row from the database. You can treat it has a hash reference to access the column information.

You should not create a Record directly - either access one from a RecordSet (by using array dereferencing) or use the insert() method on the table to add a new row.

METHODS

$instance->get(field)

Look up the value for column field in the row. You can assign to the field as well to update the value.

$instance->{field}

Shorthand for $instance->get(field)

$instance->delete()

Remove this Result from the database immediately. After this you cannot make any further calls on the object (although one day you may be allowed to re-insert it into the database).

$instance->refresh()

Update the object by re-loading the row from the database.