DBIx::Class::Storage::DBI::Informix(3pm)

DBIx::Class::Storage::DBI::Informix3pm

Base storage class for informix support

Overview

This class implements storage-specific support for the Informix RDBMS

Methods

connect_call_datetime_setup

Used as:

  on_connect_call => 'datetime_setup'

In connect_info to set the "DATE" and "DATETIME" formats.

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.

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.

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.

Further questions?

Check the list of additional DBIC resources.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10–11
  6. 12
  7. 13

From libdbix-class-perl 0.082844-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.