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, #begin_db_transaction, #case_sensitive_equality_operator, #change_column, #change_column_default, #change_column_null, #charset, #collation, column_selector, #commit_db_transaction, #configure_connection, #create_database, #create_savepoint, #create_table, #current_database, #disable_referential_integrity, #drop_database, extended, #jdbc_columns, jdbc_connection_class, #limited_update_conditions, #modify_types, #quote, #quoted_false, #quoted_true, #recreate_database, #release_savepoint, #rename_column, #rename_table, #rollback_db_transaction, #rollback_to_savepoint, #show_variable, #structure_dump, #supports_savepoints?, #type_to_sql

Methods inherited from JdbcAdapter

#_execute, #active?, #adapter_name, #arel2_visitors, #begin_db_transaction, #commit_db_transaction, #configure_arel2_visitors, #database_name, #disconnect!, #execute, #indexes, #insert_sql, #is_a?, #jdbc_columns, #jdbc_connection, #jdbc_insert, #jdbc_select_all, #jdbc_update, #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, #supports_migrations?, #table_exists?, #tables, #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.



391
392
393
394
# File 'lib/arjdbc/mysql/adapter.rb', line 391

def initialize(*args)
  super
  configure_connection
end

Instance Method Details

#adapter_spec(config) ⇒ Object



396
397
398
# File 'lib/arjdbc/mysql/adapter.rb', line 396

def adapter_spec(config)
  # return nil to avoid extending ArJdbc::MySQL, which we've already done
end

#jdbc_column_classObject



404
405
406
# File 'lib/arjdbc/mysql/adapter.rb', line 404

def jdbc_column_class
  ActiveRecord::ConnectionAdapters::MysqlColumn
end

#jdbc_connection_class(spec) ⇒ Object



400
401
402
# File 'lib/arjdbc/mysql/adapter.rb', line 400

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