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.

type_cast_config_to_integer

type_cast_config_to_integer(config) Class Public methods

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
extensions

extensions() Instance Public methods A list of extensions, to be filled in by

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

without_prepared_statement?(binds) Instance Protected 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
verify!

verify!(*ignored) Instance Public methods Checks whether the connection to the

2015-06-20 00:00:00
rollback_to_savepoint

rollback_to_savepoint(name = nil) Instance Public methods

2015-06-20 00:00:00
schema_creation

schema_creation() Instance Public 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
type_cast_config_to_boolean

type_cast_config_to_boolean(config) Class Public methods

2015-06-20 00:00:00