[Dbix-class] Re: how to determine column is inflatable?

Carl Franks fireartist at gmail.com
Thu May 21 10:53:11 GMT 2009


2009/1/29 Carl Franks <fireartist at gmail.com>:
> Is it okay to use $result_source->column_info('name')->{_inflate_info}
> to test whether a column is inflatable / deflatable?
> It seems a bit too reliant on internals, to me.
>
> Or should there be a has_inflatable_column('name') method?
>
> (and is that what it should be called? do we really also need a
> 'has_deflatable_column' too?)
>
> If someone makes a call, I'll write up a patch for it.

Attached is a patch against 0.08/trunk -r6358

set_inflatable_column() already had code to explicitly support calling
it on non-inflatable columns.
This patch adds tests for that.

It also changes get_inflatable_column() to also support being called
on non-inflatable columns, plus tests.

Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_inflated_column.patch
Type: application/octet-stream
Size: 1848 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090521/bf=
500e1d/get_inflated_column.obj


More information about the DBIx-Class mailing list