Class ActiveRecord::ConnectionAdapters::AbstractAdapter
In: lib/active_record/connection_adapters/abstract_adapter.rb
Parent: Object

All the concrete database adapters follow the interface laid down in this class. You can use this interface directly by borrowing the database connection from the Base with Base.connection.

Methods

Public Instance methods

Returns the human-readable name of the adapter. Use mixed case - one can always use downcase if needed.

Begins the transaction (and turns off auto-committing).

Returns an array of column objects for the table specified by table_name.

Commits the transaction (and turns on auto-committing).

Executes the delete statement and returns the number of rows affected.

Returns the last auto-generated ID from the affected table.

Rolls back the transaction (and turns on auto-committing). Must be done if the transaction block raises an exception or returns false.

Returns an array of record hashes with the column names as a keys and fields as values.

Returns a record hash with the column names as a keys and fields as values.

Returns a string of the CREATE TABLE SQL statements for recreating the entire structure of the database.

Wrap a block in a transaction. Returns result of block.

Executes the update statement and returns the number of rows affected.

[Validate]