default_sequence_name

default_sequence_name(table, column) Instance Public methods

delete

delete(arel, name = nil, binds = []) Instance Public methods Executes the delete statement and returns the number of rows affected.

empty_insert_statement_value

empty_insert_statement_value() Instance Public methods

exec_delete

exec_delete(sql, name, binds) Instance Public methods Executes delete sql statement in the context of this connection using binds as the bind substitutes. name is logged along with the executed sql statement.

exec_insert

exec_insert(sql, name, binds, pk = nil, sequence_name = nil) Instance Public methods Executes insert sql statement in the context of this connection using binds as the bind substitutes. name is logged along with the executed sql statement.

exec_query

exec_query(sql, name = 'SQL', binds = []) Instance Public methods Executes sql statement in the context of this connection using binds as the bind substitutes. name is logged along with the executed sql statement.

exec_update

exec_update(sql, name, binds) Instance Public methods Executes update sql statement in the context of this connection using binds as the bind substitutes. name is logged along with the executed sql statement.

execute

execute(sql, name = nil) Instance Public methods Executes the SQL statement in the context of this connection.

insert

insert(arel, name = nil, pk = nil, id_value = nil, sequence_name = nil, binds = []) Instance Public methods Returns the last auto-generated ID from the affected table. id_value will be returned unless the value is nil, in which case the database will attempt to calculate the last inserted id and return that value. If the next id was calculated in advance (as in Oracle), it should be passed in as id_value.

insert_fixture

insert_fixture(fixture, table_name) Instance Public methods Inserts the given fixture into the table. Overridden in adapters that require something beyond a simple insert (eg. Oracle).