class AbstractAdapter
Ruby on Rails 3.0.20
Since v2.2.3Active 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 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 SchemaStatement are very useful.
Inherits from
Includes
Methods (defined here)
- # active?
- # adapter_name
- # create_savepoint
- # current_savepoint_name
- # decrement_open_transactions
- # disable_referential_integrity
- # disconnect!
- # ids_in_list_limit
- # increment_open_transactions
- # log
- # open_transactions
- # prefetch_primary_key?
- # quote_table_name
- # raw_connection
- # reconnect!
- # release_savepoint
- # requires_reloading?
- # reset!
- # rollback_to_savepoint
- # supports_count_distinct?
- # supports_ddl_transactions?
- # supports_migrations?
- # supports_primary_key?
- # supports_savepoints?
- # transaction_joinable=
- # translate_exception
- # verify!
Used by
Subclasses (3)
Methods (inherited)
From ActiveRecord::ConnectionAdapters::QueryCache (6)
- # cache
- # clear_query_cache
- # select_all
- # uncached
- self. dirties_query_cache
- self. included
From ActiveSupport::Callbacks (2)
From Object (26)
- # acts_like?
- # app
- # blank?
- # controller
- # create
- # create_fixtures
- # destroy
- # duplicable?
- # edit
- # helper
- # html_safe?
- # index
- # instance_variable_names
- # new
- # new_session
- # presence
- # present?
- # reload!
- # returning
- # show
- # to_param
- # to_query
- # try
- # unescape
- # update
- # with_options
From ActiveSupport::Concern (3)
- # append_features
- # included
- self. extended
From ActiveSupport::DescendantsTracker (6)
- # descendants
- # direct_descendants
- # inherited
- self. clear
- self. descendants
- self. direct_descendants