Sha256: eef83ba9f2641ddec10602e2ca2acf93c16fe5c16dd682eb4b4aa13d2329985c

Contents?: true

Size: 396 Bytes

Versions: 16

Compression:

Stored size: 396 Bytes

Contents

class ActiveRecord::Base
  class << self
    def informix_connection(config)
      config[:port] ||= 9088
      config[:url] ||= "jdbc:informix-sqli://#{config[:host]}:#{config[:port]}/#{config[:database]}:INFORMIXSERVER=#{config[:servername]}"
      config[:driver] = 'com.informix.jdbc.IfxDriver'
      config[:adapter_spec] = ::ArJdbc::Informix
      jdbc_connection(config)
    end
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 lib/arjdbc/informix/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.9 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.8 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.5 lib/arjdbc/informix/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arjdbc/informix/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arjdbc/informix/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arjdbc/informix/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arjdbc/informix/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.2 lib/arjdbc/informix/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.1 lib/arjdbc/informix/connection_methods.rb
activerecord-jdbc-adapter-1.2.0 lib/arjdbc/informix/connection_methods.rb