Method: ActiveRecord::ConnectionAdapters::OracleEnhanced::OCIConnection#initialize
- Defined in:
- lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb
#initialize(config) ⇒ OCIConnection
Returns a new instance of OCIConnection.
30 31 32 33 34 35 36 |
# File 'lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb', line 30 def initialize(config) @raw_connection = OCI8EnhancedAutoRecover.new(config, OracleEnhancedOCIFactory) # default schema owner @owner = config[:schema] @owner ||= config[:username] @owner = @owner.to_s.upcase end |