ActiveRecord::ConnectionAdapters::AbstractAdapter (Class)

In: lib/active_record/connection_adapters/abstract_adapter.rb
Parent: Object

Methods

columns   delete   insert   new   select_all   select_one   update  

Included Modules

Benchmark

Public Class methods

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 10
10:       def initialize(connection, logger = nil)
11:         @connection, @logger = connection, logger
12:         @runtime = 0
13:       end

Public Instance methods

Must return an array of row hashes with the column names as a keys and row fields as values.

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 16
16:       def select_all(sql, name = nil) end

Must return a hash with the column names as a keys and row fields as values.

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 19
19:       def select_one(sql, name = nil) end

Must return an array of column names for the table specified by table_name.

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 22
22:       def columns(table_name, name = nil) end

Must return the last auto-generated ID from the affected table.

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 25
25:       def insert(sql, name = nil) end

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 27
27:       def update(sql, name = nil) end

[Source]

    # File lib/active_record/connection_adapters/abstract_adapter.rb, line 29
29:       def delete(sql, name = nil) end

[Validate]