NAME

DBIx::Class::Storage::DBI::Informix - Base Storage Class for Informix Support

DESCRIPTION

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.

INHERITED METHODS

DBIx::Class::Storage::DBI

auto_savepoint, bind_attribute_by_data_type, build_datetime_parser, columns_info_for, connect_call_do_sql, connect_info, connected, create_ddl_dir, datetime_parser, datetime_parser_type, dbh, dbh_do, delete, deploy, deployment_statements, disable_sth_caching, disconnect, disconnect_call_do_sql, ensure_connected, get_dbms_capability, get_use_dbms_capability, insert, insert_bulk, is_datatype_numeric, is_replicating, lag_behind_master, new, on_connect_call, on_connect_do, on_disconnect_call, on_disconnect_do, relname_to_table_alias, select, select_single, set_dbms_capability, set_use_dbms_capability, source_bind_attributes, sql_limit_dialect, sql_maker, sql_maker_class, sql_name_sep, sql_quote_char, sqlt_type, sth, svp_begin, svp_release, svp_rollback, txn_begin, txn_commit, txn_do, txn_rollback, unsafe, update

DBIx::Class::Storage

cursor, cursor_class, debug, debugcb, debugfh, debugobj, savepoints, schema, set_schema, throw_exception, transaction_depth, txn_scope_guard

AUTHOR

See "AUTHOR" in DBIx::Class and "CONTRIBUTORS" in DBIx::Class.

LICENSE

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