<<

NAME

DBIx::Class::Storage::DBI::Sybase::ASE::NoBindVars - Storage::DBI subclass for Sybase ASE without placeholder support

DESCRIPTION

If you're using this driver then your version of Sybase or the libraries you use to connect to it do not support placeholders.

You can also enable this driver explicitly using:

  my $schema = SchemaClass->clone;
  $schema->storage_type('::DBI::Sybase::ASE::NoBindVars');
  $schema->connect($dsn, $user, $pass, \%opts);

See the discussion in "Using ? Placeholders & bind parameters to $sth->execute" in DBD::Sybase for details on the pros and cons of using placeholders.

One advantage of not using placeholders is that select @@identity will work for obtaining the last insert id of an IDENTITY column, instead of having to do select max(col) in a transaction as the base Sybase driver does.

When using this driver, bind variables will be interpolated (properly quoted of course) into the SQL query itself, without using placeholders.

The caching of prepared statements is also explicitly disabled, as the interpolation renders it useless.

INHERITED METHODS

DBIx::Class::Storage::DBI::NoBindVars

connect_info

DBIx::Class::Storage::DBI::Sybase::ASE

auto_cast, auto_savepoint, connect_call_blob_setup, connect_call_datetime_setup, connect_call_set_auto_cast, cursor_class, datetime_parser_type, debug, debugobj, disable_sth_caching, disconnect, insert, insert_bulk, last_insert_id, schema, unsafe, update

DBIx::Class::Storage::DBI::Sybase

set_textsize, using_freetds

DBIx::Class::Storage::DBI

DESTROY, bind_attribute_by_data_type, build_datetime_parser, columns_info_for, connect_call_do_sql, connected, create_ddl_dir, datetime_parser, dbh, dbh_do, delete, deploy, deployment_statements, disconnect_call_do_sql, ensure_connected, get_dbms_capability, get_use_dbms_capability, 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, savepoints, select, select_single, set_dbms_capability, set_use_dbms_capability, source_bind_attributes, sql_maker, sql_maker_class, sqlt_type, sth, svp_begin, svp_release, svp_rollback, transaction_depth, txn_begin, txn_commit, txn_do, txn_rollback, with_deferred_fk_checks

DBIx::Class::Storage

cursor, debugcb, debugfh, set_schema, throw_exception, txn_scope_guard

DBIx::Class

MODIFY_CODE_ATTRIBUTES, component_base_class, mk_classaccessor, mk_classdata

DBIx::Class::Componentised

inject_base

Class::C3::Componentised

ensure_class_found, ensure_class_loaded, load_components, load_optional_class, load_optional_components, load_own_components

Class::Accessor::Grouped

get_component_class, get_inherited, get_simple, get_super_paths, make_group_accessor, make_group_ro_accessor, make_group_wo_accessor, mk_group_accessors, mk_group_ro_accessors, mk_group_wo_accessors, set_component_class, set_inherited, set_simple

INHERITED METHODS

DBIx::Class::Storage::DBI::NoBindVars

connect_info

DBIx::Class::Storage::DBI::Sybase::ASE

auto_cast, auto_savepoint, connect_call_blob_setup, connect_call_datetime_setup, connect_call_set_auto_cast, cursor_class, datetime_parser_type, debug, debugobj, disable_sth_caching, disconnect, insert, insert_bulk, last_insert_id, schema, unsafe, update

DBIx::Class::Storage::DBI::Sybase

set_textsize, using_freetds

DBIx::Class::Storage::DBI

DESTROY, bind_attribute_by_data_type, build_datetime_parser, columns_info_for, connect_call_do_sql, connected, create_ddl_dir, datetime_parser, dbh, dbh_do, delete, deploy, deployment_statements, disconnect_call_do_sql, ensure_connected, get_dbms_capability, get_use_dbms_capability, 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, savepoints, select, select_single, set_dbms_capability, set_use_dbms_capability, source_bind_attributes, sql_maker, sql_maker_class, sqlt_type, sth, svp_begin, svp_release, svp_rollback, transaction_depth, txn_begin, txn_commit, txn_do, txn_rollback, with_deferred_fk_checks

DBIx::Class::Storage

cursor, debugcb, debugfh, set_schema, throw_exception, txn_scope_guard

DBIx::Class

MODIFY_CODE_ATTRIBUTES, component_base_class, mk_classaccessor, mk_classdata

DBIx::Class::Componentised

inject_base

Class::C3::Componentised

ensure_class_found, ensure_class_loaded, load_components, load_optional_class, load_optional_components, load_own_components

Class::Accessor::Grouped

get_component_class, get_inherited, get_simple, get_super_paths, make_group_accessor, make_group_ro_accessor, make_group_wo_accessor, mk_group_accessors, mk_group_ro_accessors, mk_group_wo_accessors, set_component_class, set_inherited, set_simple

AUTHORS

See "CONTRIBUTORS" in DBIx::Class.

LICENSE

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

<<