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.

supports_bulk_alter?

supports_bulk_alter?() Instance Public methods

2015-06-20 00:00:00
valid_type?

valid_type?(type) 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
active_threadsafe?

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

2015-06-20 00:00:00
active?

active?() Instance Public methods Checks whether the connection to the database

2015-06-20 00:00:00
requires_reloading?

requires_reloading?() Instance Public methods Returns true if its required to

2015-06-20 00:00:00
release_savepoint

release_savepoint(name = nil) Instance Public methods

2015-06-20 00:00:00
unprepared_visitor

unprepared_visitor() Instance Public methods

2015-06-20 00:00:00
current_savepoint_name

current_savepoint_name() Instance Public methods

2015-06-20 00:00:00