Class: ActiveRecord::ConnectionAdapters::OracleEnhanced::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/oracle_enhanced/connection.rb

Overview

:nodoc:

Direct Known Subclasses

JDBCConnection, OCIConnection

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#raw_connectionObject (readonly)

Returns the value of attribute raw_connection.



19
20
21
# File 'lib/active_record/connection_adapters/oracle_enhanced/connection.rb', line 19

def raw_connection
  @raw_connection
end

Class Method Details

.create(config) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/active_record/connection_adapters/oracle_enhanced/connection.rb', line 8

def self.create(config)
  case ORACLE_ENHANCED_CONNECTION
  when :oci
    OracleEnhanced::OCIConnection.new(config)
  when :jdbc
    OracleEnhanced::JDBCConnection.new(config)
  else
    nil
  end
end