DBIx::Class::UTF8Columns.3pm

Langue: en

Version: 2010-05-12 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

DBIx::Class::UTF8Columns - Force UTF8 (Unicode) flag on columns

SYNOPSIS

     package Artist;
     use base 'DBIx::Class::Core';
 
     __PACKAGE__->load_components(qw/UTF8Columns/);
     __PACKAGE__->utf8_columns(qw/name description/);
 
     # then belows return strings with utf8 flag
     $artist->name;
     $artist->get_column('description');
 
 

DESCRIPTION

This module allows you to get columns data that have utf8 (Unicode) flag.

Warning

Note that this module overloads ``store_column'' in DBIx::Class::Row in a way that may prevent other components overloading the same method from working correctly. This component must be the last one before DBIx::Class::Row (which is provided by DBIx::Class::Core). DBIx::Class will detect such incorrect component order and issue an appropriate warning, advising which components need to be loaded differently.

SEE ALSO

Template::Stash::ForceUTF8, DBIx::Class::UUIDColumns.

METHODS

utf8_columns

EXTENDED METHODS

get_column

get_columns

store_column

AUTHORS

See ``CONTRIBUTORS'' in DBIx::Class.

LICENSE

You may distribute this code under the same terms as Perl itself.