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.

translate_exception

translate_exception(exception, message) Instance Protected methods

2015-06-20 00:00:00
disconnect!

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

2015-06-20 00:00:00
reset!

reset!() Instance Public methods Reset the state of this connection, directing

2015-06-20 00:00:00
log

log(sql, name = "SQL", binds = [], statement_name = nil) Instance Protected methods

2015-06-20 00:00:00
lease

lease() Instance Public methods

2015-06-20 00:00:00
case_insensitive_comparison

case_insensitive_comparison(table, attribute, column, value) Instance Public methods

2015-06-20 00:00:00
raw_connection

raw_connection() Instance Public methods Provides access to the underlying database

2015-06-20 00:00:00
supports_index_sort_order?

supports_index_sort_order?() Instance Public methods Does this adapter support

2015-06-20 00:00:00
supports_ddl_transactions?

supports_ddl_transactions?() Instance Public methods Does this adapter support

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

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

2015-06-20 00:00:00