reset_sequence!

reset_sequence!(table, column, sequence = nil) Instance Public methods Set the sequence to the max value of the table's column.

limited_update_conditions

limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key) Instance Public methods

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).

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.

execute

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

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.

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_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_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.

empty_insert_statement_value

empty_insert_statement_value() Instance Public methods