[Melbourne-pm] DBIx::Class inflate/deflate vs split/combined fields

Hamish Carpenter hamish at hamishcarpenter.com
Fri Nov 4 16:50:31 PDT 2011

On Fri, Nov 4, 2011 at 12:04 PM, Toby Corkindale <
toby.corkindale at strategicdata.com.au> wrote:

>  Inflation from the database is easy.
> For deflation, you can override the actual field name methods, plus
> update() and create() methods, and handle the conversion there? It's a bit
> messy, but works.

It could be more setup but definitely worth it if you have many of these
fields. Try looking at other modules on cpan which do similar things eg:


they appear to define a new field type with a corresponding component
plugin which takes care of the {in,de}flate actions for you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20111105/18cfddfe/attachment.html>

More information about the Melbourne-pm mailing list