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.

unprepared_statement

unprepared_statement() Instance Public methods

2015-06-20 00:00:00
translate_exception_class

translate_exception_class(e, sql) Instance Protected methods

2015-06-20 00:00:00
create_savepoint

create_savepoint(name = nil) Instance Public methods

2015-06-20 00:00:00
expire

expire() Instance Public methods

2015-06-20 00:00:00
disable_extension

disable_extension(name) Instance Public methods This is meant to be implemented

2015-06-20 00:00:00
supports_savepoints?

supports_savepoints?() Instance Public methods Does this adapter support savepoints

2015-06-20 00:00:00
supports_extensions?

supports_extensions?() Instance Public methods Does this adapter support database

2015-06-20 00:00:00
supports_transaction_isolation?

supports_transaction_isolation?() Instance Public methods Does this adapter

2015-06-20 00:00:00
supports_count_distinct?

supports_count_distinct?() Instance Public methods Does this adapter support

2015-06-20 00:00:00
case_sensitive_modifier

case_sensitive_modifier(node) Instance Public methods

2015-06-20 00:00:00