NAME

Table::Denormalized::Row - Row-based DB interaction

SYNOPSIS

  package My::Row;
  use base 'Table::Denormalized::Row';

  my $results = $idx->query({ artist => 'Jamiroquai' });
  $_->delete
    for @$results;

ABSTRACT

This module provides four (trivial) methods for every row, in a Class::DBI-style manner.

It requires some magic entries in the hash (until these get moved into inside-out objects) :

  _id    - the primary key of the table
  _table - a reference to the corresponding Table::Denormalized object

$row->delete

Removes the row from the database

$row->update

Writes the body of the row into the database

$row->_skeleton

Returns the skeleton of the row, that is, all keys that match /^_/. This is convenient when copying or cloning a row.

$row->_body

Returns the body of the row, that is, all keys that do not match /^_/. This is convenient when copying or cloning a row.

AUTHOR

Max Maischein, <corion@cpan.org>

SEE ALSO

DBI, Class::DBI