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


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to