Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dbix::class::utf8columns(3) [osx man page]

DBIx::Class::UTF8Columns(3)				User Contributed Perl Documentation			       DBIx::Class::UTF8Columns(3)

NAME
DBIx::Class::UTF8Columns - Force UTF8 (Unicode) flag on columns (DEPRECATED) 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 and store utf8 (unicode) column data in a database that does not natively support unicode. It ensures that column data is correctly serialised as a byte stream when stored and de-serialised to unicode strings on retrieval. THE USE OF THIS MODULE (AND ITS COUSIN DBIx::Class::ForceUTF8) IS VERY STRONGLY DISCOURAGED, PLEASE READ THE WARNINGS BELOW FOR AN EXPLANATION. If you want to continue using this module and do not want to receive further warnings set the environment variable "DBIC_UTF8COLUMNS_OK" to a true value. Warning - Module does not function properly on create/insert Recently (April 2010) a bug was found deep in the core of DBIx::Class which affects any component attempting to perform encoding/decoding by overloading store_column and get_columns. As a result of this problem create sends the original column values to the database, while update sends the encoded values. DBIx::Class::UTF8Columns and DBIx::Class::ForceUTF8 are both affected by ths bug. It is unclear how this bug went undetected for so long (it was introduced in March 2006), No attempts to fix it will be made while the implications of changing such a fundamental behavior of DBIx::Class are being evaluated. However in this day and age you should not be using this module anyway as Unicode is properly supported by all major database engines, as explained below. If you have specific questions about the integrity of your data in light of this development - please join us on IRC or the mailing list to further discuss your concerns with the team. Warning - Native Database Unicode Support If your database natively supports Unicode (as does SQLite with the "sqlite_unicode" connect flag, MySQL with "mysql_enable_utf8" connect flag or Postgres with the "pg_enable_utf8" connect flag), then this component should not be used, and will corrupt unicode data in a subtle and unexpected manner. It is far better to do Unicode support within the database if possible rather than converting data to and from raw bytes on every database round trip. Warning - Component Overloading 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. perl v5.16.2 2012-08-16 DBIx::Class::UTF8Columns(3)

Check Out this Related Man Page

DBIx::Class::Manual::DocMap(3pm)			User Contributed Perl Documentation			  DBIx::Class::Manual::DocMap(3pm)

NAME
DBIx::Class::Manual::DocMap - What documentation do we have? Manuals DBIx::Class::Manual - User's Manual overview. DBIx::Class::Manual::FAQ - Frequently Asked Questions, gathered from IRC and the mailing list. DBIx::Class::Manual::Intro - Introduction to setting up and using DBIx::Class. DBIx::Class::Manual::Example - Full example Schema. DBIx::Class::Manual::Cookbook - Various short recipes on how to do things. DBIx::Class::Manual::Troubleshooting - What to do if things go wrong (diagnostics of known error messages). DBIx::Class::Manual::Component - How to write your own DBIx::Class components. DBIx::Class::Manual::Glossary - What do all those terms mean? Setting up DBIx::Class::Schema - Overall schemas, and connection container. DBIx::Class::ResultSource - Source/Table definition functions. DBIx::Class::Relationship - Simple relationships. DBIx::Class::Relationship::Base - Relationship details. DBIx::Class::PK::Auto - Magically retrieve auto-incrementing fields. DBIx::Class::Core - Set of standard components to load. DBIx::Class::InflateColumn - Making objects out of your columns. DBIx::Class::InflateColumn::DateTime - Magically turn your datetime or timestamp columns into DateTime objects. DBIx::Class::PK - Dealing with primary keys. DBIx::Class::ResultSourceProxy::Table - Turns the resultsource into a table. DBIx::Class::AccessorGroup - Accessor grouping. Retrieving and creating data DBIx::Class::ResultSet - Selecting and manipulating sets. DBIx::Class::ResultSetColumn - Perform operations on entire columns of a ResultSet. DBIx::Class::Row - Dealing with actual data. DBIx::Class::Storage - Basic Storage stuff. DBIx::Class::Storage::DBI - Storage using DBI and SQL::Abstract. perl v5.14.2 2010-06-03 DBIx::Class::Manual::DocMap(3pm)
Man Page