Sha256: cf50a4b88556e1fa864cfd97b72919b6e371983217f93118809385aef592f9e0
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
ArJdbc::ConnectionMethods.module_eval do def oracle_connection(config) config[:port] ||= 1521 config[:url] ||= "jdbc:oracle:thin:@#{config[:host]}:#{config[:port]}:#{config[:database]}" config[:driver] ||= "oracle.jdbc.driver.OracleDriver" config[:adapter_spec] ||= ::ArJdbc::Oracle config[:adapter_class] = ActiveRecord::ConnectionAdapters::OracleAdapter unless config.key?(:adapter_class) config[:connection_alive_sql] ||= 'SELECT 1 FROM DUAL' jdbc_connection(config) end alias_method :jdbcoracle_connection, :oracle_connection end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-1.3.0.beta2 | lib/arjdbc/oracle/connection_methods.rb |