Method: ActiveRecord::ConnectionAdapters::AbstractAdapter#raw_connection

Defined in:
lib/active_record/connection_adapters/abstract_adapter.rb

#raw_connectionObject

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.



162
163
164
# File 'lib/active_record/connection_adapters/abstract_adapter.rb', line 162

def raw_connection
  @connection
end