Class ActiveRecord::ConnectionAdapters::Mysql2Adapter
In: lib/active_record/connection_adapters/mysql2_adapter.rb
Parent: AbstractMysqlAdapter

Methods

Constants

ADAPTER_NAME = 'Mysql2'

Public Class methods

Public Instance methods

CONNECTION MANAGEMENT ====================================

create(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)

Alias for insert_sql

Disconnects from the database if already connected. Otherwise, this method does nothing.

exec_update(sql, name, binds)

Alias for exec_delete

exec_without_stmt(sql, name = 'SQL', binds = [])

Alias for exec_query

Executes the SQL statement in the context of this connection.

DATABASE STATEMENTS ======================================

QUOTING ==================================================

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

Returns an array of arrays containing the field values. Order is the same as that returned by columns.

[Validate]