[Dbix-class] Fw: Namespaces for own components

Daisuke Murase typester at cpan.org
Thu Mar 2 16:06:20 CET 2006


Matt S Trout <dbix-class at trout.me.uk> wrote:
> > Well I'd just wrote DBIx::Class::UTF8Columns that I needed.
> >
> > That module forces utf8 flag on column data when get_column().
> >
> >     package Artist;
> >     __PACKAGE__->load_components(qw/UTF8Columns Core/);
> >     __PACKAGE__->utf8_columns(qw/name description/);
> >
> >     # then belows return strings with utf8 flag
> >     $artist->name;
> >     $artist->get_column('description');
> >
> > Is there other better way to do this ?
>
> Looks cool to me, although it would seem more logical to me to store the
> utf8-ness in column_info rather than an extra piece of class data.
>
> You may also need to override store_column to ensure that data going
> into the database does so correctly.

Thanks, you're right. I'd work for it.


> Would you like svn space for this as an extension or would you be willing
> to maintain it as part of the main dist? I think I'd prefer the latter since
> this is a very lightweight extension and quite a number of people are likely
> to be interested in it.

Sounds nice for me either, and no problem about the latter :)
Well, what should I do something for it ?

--
Daisuke Murase <typester at cpan.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060303/68f35a38/attachment.pgp 


More information about the Dbix-class mailing list