package DBIx::Class::InflateColumn; use strict; use warnings;
use base qw/DBIx::Class::Row/; =head1 NAME
DBIx::Class::InflateColumn - Automatically create references
from column data =head1 SYNOPSIS # In your table classes
__PACKAGE__->inflate_column('column_name', { inflate => sub { my
($raw_value_from_db, $result_object) = @_; ... }, deflate => sub
{ my ($inflated_value_from_user, $result_object) = @_; ... },
}); =head1 DESCRIPTION This component translates column data
into references, i.e. "inflating" the column data. It also
"deflates" references into an appropriate format for the
database. It can be used, for example, to automatically convert
to and from L objects for your date and time fields. There's a
convenience component to actually do that though, try L. It will
handle all types of references except scalar references. It will
not handle scalar values, these are ignored and thus passed
through to L. This is to allow setting raw values to "just
work". Scalar references are passed through to the datab