DBIx::Class::Storage::DBI::Informix - Base Storage Class for Informix Support
This class implements storage-specific support for the Informix RDBMS
Used as:
on_connect_call => 'datetime_setup'
In connect_info to set the DATE and DATETIME formats.
DATE
DATETIME
Sets the following environment variables:
GL_DATE="%m/%d/%Y" GL_DATETIME="%Y-%m-%d %H:%M:%S%F5"
The DBDATE and DBCENTURY environment variables are cleared.
DBDATE
DBCENTURY
NOTE: setting the GL_DATE environment variable seems to have no effect after the process has started, so the default format is used. The GL_DATETIME setting does take effect however.
GL_DATE
GL_DATETIME
The DATETIME data type supports up to 5 digits after the decimal point for second precision, depending on how you have declared your column. The full possible precision is used.
The column declaration for a DATETIME with maximum precision is:
column_name DATETIME YEAR TO FRACTION(5)
The DATE data type stores the date portion only, and it MUST be declared with:
data_type => 'date'
in your Result class.
You will need the DateTime::Format::Strptime module for inflation to work.
See "AUTHOR" in DBIx::Class and "CONTRIBUTORS" in DBIx::Class.
You may distribute this code under the same terms as Perl itself.
To install DBIx::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class
CPAN shell
perl -MCPAN -e shell install DBIx::Class
For more information on module installation, please visit the detailed CPAN module installation guide.