method
raw_connection
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::AbstractAdapter
raw_connection()public
Provides access to the underlying database driver for this adapter. For example, this method returns a Mysql2::Client object in case of Mysql2Adapter, and a PG::Connection object in case of PostgreSQLAdapter.
This is useful for when you need to call a proprietary method such as PostgreSQL’s lo_* methods.