= ActiveRecord::ConnectionAdapters::AbstractAdapter < Object ------------------------------------------------------------------------ = Includes: (from /home/chedong/.local/share/rdoc) ActiveSupport::Callbacks DatabaseLimits QueryCache Savepoints (from /home/chedong/.local/share/rdoc) ------------------------------------------------------------------------ Active Record supports multiple database systems. AbstractAdapter and related classes form the abstraction layer which makes this possible. An AbstractAdapter represents a connection to a database, and provides an abstract interface for database-specific functionality such as establishing a connection, escaping values, building the right SQL fragments for :offset and :limit options, etc. All the concrete database adapters follow the interface laid down in this class. ActiveRecord::Base.connection( rdoc-ref:ConnectionHandling#connection ) returns an AbstractAdapter object, which you can use. Most of the methods in the adapter are useful during migrations. Most notably, the instance methods provided by SchemaStatements are very useful. ------------------------------------------------------------------------ = Constants: ADAPTER_NAME: [not documented] COMMENT_REGEX: [not documented] SIMPLE_INT: [not documented] = Class methods: database_exists? type_cast_config_to_boolean type_cast_config_to_integer = Instance methods: active? adapter_name clear_cache! close disable_extension disable_referential_integrity discard! disconnect! enable_extension expire extensions in_use? index_algorithms lease lock log logger owner pool prefetch_primary_key? prepared_statements prepared_statements? preventing_writes? raw_connection reconnect! replica? requires_reloading? reset! schema_cache schema_cache= supports_advisory_locks? supports_bulk_alter? supports_check_constraints? supports_comments? supports_comments_in_create? supports_common_table_expressions? supports_datetime_with_precision? supports_ddl_transactions? supports_explain? supports_expression_index? supports_extensions? supports_foreign_keys? supports_foreign_tables? 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_optimizer_hints? supports_partial_index? supports_partitioned_indexes? supports_savepoints? supports_transaction_isolation? supports_validate_constraints? supports_views? supports_virtual_columns? throw_away! unprepared_statement use_metadata_table? verify! visitor = Attributes: attr_accessor pool attr_reader in_use? attr_reader lock attr_reader logger attr_reader owner attr_reader visitor
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 06:30 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)