class Mysql2Adapter
Ruby on Rails 8.1.2
Since v3.1.12Active Record MySQL2 Adapter
Inherits from
Includes
Constants
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ADAPTER_NAME
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ER_ACCESS_DENIED_ERROR
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ER_BAD_DB_ERROR
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ER_CONN_HOST_ERROR
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ER_DBACCESS_DENIED_ERROR
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ER_UNKNOWN_HOST_ERROR
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::ER_UNKNOWN_STMT_HANDLER
- ActiveRecord::ConnectionAdapters::Mysql2Adapter::TYPE_MAP
Methods (defined here)
Private methods
(9)
Implementation detail — not part of the public API.
Methods (inherited)
From ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter (35)
- # charset
- # check_constraints
- # collation
- # create_database
- # current_database
- # drop_table
- # foreign_keys
- # index_algorithms
- # quote_string
- # recreate_database
- # rename_index
- # rename_table
- # show_variable
- # strict_mode?
- # supports_advisory_locks?
- # supports_bulk_alter?
- # supports_check_constraints?
- # supports_common_table_expressions?
- # supports_datetime_with_precision?
- # supports_disabling_indexes?
- # supports_explain?
- # supports_expression_index?
- # supports_foreign_keys?
- # supports_index_sort_order?
- # supports_indexes_in_create?
- # supports_insert_on_duplicate_skip?
- # supports_insert_on_duplicate_update?
- # supports_insert_returning?
- # supports_optimizer_hints?
- # supports_restart_db_transaction?
- # supports_transaction_isolation?
- # supports_views?
- # supports_virtual_columns?
- self. dbconsole
- self. emulate_booleans
From ActiveRecord::ConnectionAdapters::AbstractAdapter (84)
- # active?
- # adapter_name
- # check_all_foreign_keys_valid!
- # clear_cache!
- # close
- # connect!
- # connected?
- # connection_retries
- # database_exists?
- # default_timezone
- # disable_extension
- # disable_referential_integrity
- # discard!
- # disconnect!
- # enable_extension
- # extensions
- # index_algorithms
- # lease
- # max_jitter
- # pool=
- # pool_jitter
- # prefetch_primary_key?
- # prepared_statements
- # prepared_statements?
- # preventing_writes?
- # raw_connection
- # reconnect!
- # replica?
- # requires_reloading?
- # reset!
- # retry_deadline
- # role
- # savepoint_errors_invalidate_transactions?
- # schema_cache
- # schema_version
- # shard
- # supports_advisory_locks?
- # supports_bulk_alter?
- # supports_check_constraints?
- # supports_comments?
- # supports_comments_in_create?
- # supports_common_table_expressions?
- # supports_concurrent_connections?
- # supports_datetime_with_precision?
- # supports_ddl_transactions?
- # supports_deferrable_constraints?
- # supports_disabling_indexes?
- # supports_exclusion_constraints?
- # supports_explain?
- # supports_expression_index?
- # supports_extensions?
- # supports_foreign_keys?
- # supports_foreign_tables?
- # supports_index_include?
- # supports_index_sort_order?
- # supports_indexes_in_create?
- # supports_insert_conflict_target?
- # supports_insert_on_duplicate_skip?
- # supports_insert_on_duplicate_update?
- # supports_insert_returning?
- # supports_json?
- # supports_lazy_transactions?
- # supports_materialized_views?
- # supports_nulls_not_distinct?
- # supports_optimizer_hints?
- # supports_partial_index?
- # supports_partitioned_indexes?
- # supports_restart_db_transaction?
- # supports_savepoints?
- # supports_transaction_isolation?
- # supports_unique_constraints?
- # supports_validate_constraints?
- # supports_views?
- # supports_virtual_columns?
- # throw_away!
- # unprepared_statement
- # verify!
- # verify_timeout
- self. database_exists?
- self. dbconsole
- self. find_cmd_and_exec
- self. type_cast_config_to_boolean
- self. type_cast_config_to_integer
- self. validate_default_timezone
From ActiveRecord::ConnectionAdapters::QueryCache (9)
- # cache
- # clear_query_cache
- # disable_query_cache!
- # enable_query_cache!
- # query_cache
- # query_cache_enabled
- # uncached
- self. dirties_query_cache
- self. new
From ActiveSupport::Callbacks (1)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended
From ActiveSupport::DescendantsTracker (3)
- # descendants
- self. descendants
- self. subclasses
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs