instance method
raw_connection
Ruby on Rails 2.3.18
Since v2.2.3Signature
raw_connection()
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.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 161
def raw_connection
@connection
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 161
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter