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.

disconnect!

disconnect!() Instance Public methods Disconnects from the database if already

2015-06-20 00:00:00
supports_explain?

supports_explain?() Instance Public methods Does this adapter support explain

2015-06-20 00:00:00
substitute_at

substitute_at(column, index) Instance Public methods Returns a bind substitution

2015-06-20 00:00:00
type_cast_config_to_integer

type_cast_config_to_integer(config) Class Public methods

2015-06-20 00:00:00
adapter_name

adapter_name() Instance Public methods Returns the human-readable name of the

2015-06-20 00:00:00
supports_migrations?

supports_migrations?() Instance Public methods Does this adapter support migrations

2015-06-20 00:00:00
supports_primary_key?

supports_primary_key?() Instance Public methods Can this adapter determine the

2015-06-20 00:00:00
reconnect!

reconnect!() Instance Public methods Disconnects from the database if already

2015-06-20 00:00:00
index_algorithms

index_algorithms() Instance Public methods A list of index algorithms, to be

2015-06-20 00:00:00
clear_cache!

clear_cache!() Instance Public methods Clear any caching the database adapter

2015-06-20 00:00:00