Type:
Class
Constants:
SIMPLE_INT : /\A\d+\z/

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 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.

schema_cache=

schema_cache=(cache) Instance Public methods

2015-06-20 00:00:00
schema_creation

schema_creation() Instance Public methods

2015-06-20 00:00:00
active_threadsafe?

active_threadsafe?() Instance Public methods Adapter should redefine this if

2015-06-20 00:00:00
without_prepared_statement?

without_prepared_statement?(binds) Instance Protected methods

2015-06-20 00:00:00
close

close() Instance Public methods Check the connection back in to the connection

2015-06-20 00:00:00
supports_bulk_alter?

supports_bulk_alter?() Instance Public methods

2015-06-20 00:00:00
disable_referential_integrity

disable_referential_integrity() Instance Public methods Override to turn off

2015-06-20 00:00:00
supports_partial_index?

supports_partial_index?() Instance Public methods Does this adapter support

2015-06-20 00:00:00
rollback_to_savepoint

rollback_to_savepoint(name = nil) Instance Public methods

2015-06-20 00:00:00
prefetch_primary_key?

prefetch_primary_key?(table_name = nil) Instance Public methods Should primary

2015-06-20 00:00:00