Sha256: bd587fc959c8621c348f1167500f41af2b72de4f1fba8833ac1d61dda209d3cd

Contents?: true

Size: 430 Bytes

Versions: 32

Compression:

Stored size: 430 Bytes

Contents

class ActiveRecord::Base
  class << self
    def jdbc_connection(config)
      adapter_class = config[:adapter_class]
      adapter_class ||= ::ActiveRecord::ConnectionAdapters::JdbcAdapter
      adapter_class.new(nil, logger, config)
    end
    alias jndi_connection jdbc_connection

    def embedded_driver(config)
      config[:username] ||= "sa"
      config[:password] ||= ""
      jdbc_connection(config)
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 lib/arjdbc/jdbc/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.9 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.8 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.5 lib/arjdbc/jdbc/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 lib/arjdbc/jdbc/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 lib/arjdbc/jdbc/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 lib/arjdbc/jdbc/connection_methods.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.2.1 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-onsite-1.2.2 lib/arjdbc/jdbc/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 lib/arjdbc/jdbc/connection_methods.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.2 lib/arjdbc/jdbc/connection_methods.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.1 lib/arjdbc/jdbc/connection_methods.rb
c3-activerecord-jdbc-adapter-1.1.3.1 lib/arjdbc/jdbc/connection_methods.rb
activerecord-jdbc-adapter-1.2.0 lib/arjdbc/jdbc/connection_methods.rb
c3-activerecord-jdbc-adapter-1.1.3 lib/arjdbc/jdbc/connection_methods.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 lib/arjdbc/jdbc/connection_methods.rb