[Dbix-class] Filtering module

Jess Robinson castaway at desert-island.me.uk
Thu Oct 23 17:18:49 BST 2008


On Tue, 21 Oct 2008, jackal wrote:

> This is proposal for a filtering component, similar to
> DBIx::Class::InflateColumn
> It can -modify- columns transparently. When you read column - it inflates,
> when you write - deflates.
> On creating a new column, whole cycle passed - deflating for DB and inflating
> for usage.
> Module can handle scalars, because of it's destination - to modify data.

I think I see where you are going, but can you give some actual examples 
with data, how to use it etc?

Someone did start/implement a ::Filter module, but I'm not sure where that 
went or why it disappeared.. That one was *just* for scalar to scalar 
though.

> Module can works together with InflateColumn:
> __PACKAGE__->modify_column('passw', ...);
> __PACKAGE__->inflate_column('passw', ...);
>
> In that case, when you read - it inflates into object by InflateColumn, then
> object will be modified by ModifyColumn. When wou write - there's reverse
> process.

Again, examples? ;)

Jess




More information about the DBIx-Class mailing list