zzbbyy at gmail.com
Thu Oct 6 16:47:10 CEST 2005
On 10/6/05, Jesper Krogh <jesper at krogh.cc> wrote:
> Hi everyone.
> Is it nessesary to code the Class::DBI interfaces by hand if I need to use
> the "lazy" evaulation of attributes?
> I have a coulple of BYTEA (postgresql's BLOB's) in the database, that is
> rarely used, so these should only be fetched from the database when
> explicitly asked for.
You just add a line like:
__PACKAGE__->columns(Essential => qw/id nick name cdate/);
to your model package, and then on default only the listed columns
will be loaded from the database.
Please read the 'LAZY POPULATION' part of CDBI documentation for
More information about the Catalyst