class ActiveRecord::ConnectionAdapters::AbstractAdapter

def raw_connection

PostgreSQL's lo_* methods.
This is useful for when you need to call a proprietary method such as

and a PGconn object in case of PostgreSQLAdapter.
example, this method returns a Mysql object in case of MysqlAdapter,
Provides access to the underlying database driver for this adapter. For
def raw_connection
  @connection
end