Class: ActiveRecord::ConnectionAdapters::MysqlAdapter

Inherits:
JdbcAdapter
  • Object
show all
Includes:
ArJdbc::MySQL
Defined in:
lib/arjdbc/mysql/adapter.rb

Instance Attribute Summary

Attributes inherited from JdbcAdapter

#config

Instance Method Summary collapse

Methods included from ArJdbc::MySQL

#adapter_name, #add_column, #add_column_position!, #add_limit_offset!, arel2_visitors, #case_sensitive_equality_operator, #case_sensitive_modifier, #change_column, #change_column_default, #change_column_null, #charset, #collation, column_selector, #configure_connection, #create_database, #create_savepoint, #create_table, #current_database, #disable_referential_integrity, #drop_database, extended, #indexes, #jdbc_columns, jdbc_connection_class, #join_to_update, #limited_update_conditions, #modify_types, #pk_and_sequence_for, #primary_key, #quote, #quote_column_name, #quoted_false, #quoted_true, #recreate_database, #release_savepoint, #rename_column, #rename_table, #rollback_to_savepoint, #show_variable, #structure_dump, #supports_savepoints?, #type_to_sql

Methods inherited from JdbcAdapter

#_execute, #active?, #adapter_name, #adapter_spec, arel2_visitors, #begin_db_transaction, #commit_db_transaction, #configure_arel2_visitors, #database_name, #disconnect!, #exec_query, #execute, #indexes, #insert_sql, #is_a?, #jdbc_columns, #jdbc_connection, #jdbc_insert, #jdbc_select_all, #jdbc_update, #last_inserted_id, #modify_types, #native_database_types, #native_sql_to_type, #pk_and_sequence_for, #primary_key, #primary_keys, #reconnect!, #rollback_db_transaction, #select, #select_one, #select_rows, #substitute_binds, #supports_migrations?, #table_exists?, #tables, visitor_for, #write_large_object

Methods included from ShadowCoreMethods

#alias_chained_method

Methods included from JdbcConnectionPoolCallbacks

included, needed?, #on_checkin, #on_checkout

Methods included from CompatibilityMethods

needed?, #quote_table_name

Constructor Details

#initialize(*args) ⇒ MysqlAdapter

Returns a new instance of MysqlAdapter.



464
465
466
467
# File 'lib/arjdbc/mysql/adapter.rb', line 464

def initialize(*args)
  super
  configure_connection
end

Instance Method Details

#jdbc_column_classObject



473
474
475
# File 'lib/arjdbc/mysql/adapter.rb', line 473

def jdbc_column_class
  ActiveRecord::ConnectionAdapters::MysqlColumn
end

#jdbc_connection_class(spec) ⇒ Object



469
470
471
# File 'lib/arjdbc/mysql/adapter.rb', line 469

def jdbc_connection_class(spec)
  ::ArJdbc::MySQL.jdbc_connection_class
end