The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::Storage::DBI::ODBC::ACCESS - Support specific to MS Access over ODBC

DESCRIPTION

This class implements support specific to Microsoft Access over ODBC.

It is a subclass of DBIx::Class::Storage::DBI::ODBC and DBIx::Class::Storage::DBI::ACCESS, see those classes for more information.

It is loaded automatically by by DBIx::Class::Storage::DBI::ODBC when it detects a MS Access back-end.

This driver implements workarounds for IMAGE and MEMO columns, and DBIx::Class::InflateColumn::DateTime support for DATETIME columns.

EXAMPLE DSN

  dbi:ODBC:driver={Microsoft Access Driver (*.mdb, *.accdb)};dbq=C:\Users\rkitover\Documents\access_sample.accdb

TEXT/IMAGE/MEMO COLUMNS

Avoid using TEXT columns as they will be truncated to 255 bytes. Some other drivers (like ADO) will automatically convert TEXT columns to MEMO, but the ODBC driver does not.

IMAGE columns work correctly, but the statements for inserting or updating an IMAGE column will not be cached, due to a bug in the Access ODBC driver.

MEMO columns work correctly as well, but you must take care to set LongReadLen to $max_memo_size * 2 + 1. This is done for you automatically if you pass LongReadLen in your connect_info; but if you set this attribute directly on the $dbh, keep this limitation in mind.

INHERITED METHODS

DBIx::Class::Storage::DBI::ACCESS

bind_attribute_by_data_type, sqlt_type

DBIx::Class::Storage::DBI::UniqueIdentifier

new_guid

DBIx::Class::Storage::DBI

auto_savepoint, build_datetime_parser, columns_info_for, connect_call_datetime_setup, connect_call_do_sql, connect_info, connected, create_ddl_dir, datetime_parser, 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_bulk, is_datatype_numeric, is_replicating, lag_behind_master, last_insert_id, 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, sth, svp_begin, svp_release, svp_rollback, txn_begin, txn_commit, txn_do, txn_rollback, unsafe, with_deferred_fk_checks

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.