rollback_to_savepoint

rollback_to_savepoint(name = nil) Instance Public methods

reset!

reset!() Instance Public methods Reset the state of this connection, directing the DBMS to clear transactions and other connection-related server-side state. Usually a database-dependent operation. The default implementation does nothing; the implementation should be overridden by concrete adapters.

requires_reloading?

requires_reloading?() Instance Public methods Returns true if its required to reload the connection between requests for development mode. This is not the case for Ruby/MySQL and it's not necessary for any adapters except SQLite.

release_savepoint

release_savepoint(name = nil) Instance Public methods

reconnect!

reconnect!() Instance Public methods Disconnects from the database if already connected, and establishes a new connection with the database. Implementors should call super if they override the default implementation.

raw_connection

raw_connection() Instance Public methods Provides access to the underlying database driver for this adapter. For example, this method returns a Mysql object in case of MysqlAdapter, and a PGconn object in case of PostgreSQLAdapter. This is useful for when you need to call a proprietary method such as PostgreSQL's lo_* methods.

prefetch_primary_key?

prefetch_primary_key?(table_name = nil) Instance Public methods Should primary key values be selected from their corresponding sequence before the insert statement? If true, next_sequence_value is called before each insert to set the record's primary key. This is false for all adapters but Firebird.

open_transactions

open_transactions() Instance Public methods

lease

lease() Instance Public methods

index_algorithms

index_algorithms() Instance Public methods A list of index algorithms, to be filled by adapters that support them. MySQL and PostgreSQL have support for them right now.