Sha256: 4bcf47141f68546ea4aca8e3d9a7a9fa858031ccebe7c5bebbda551ae799aeeb

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

require 'jdbc_common'

config = {
  :adapter => 'jdbc',
  :url => 'jdbc:derby:memory:derby-testdb;create=true',
  :driver => 'org.apache.derby.jdbc.EmbeddedDriver',
  :username => 'arjdbc',
  :password => 'arjdbc'
}

require 'jdbc/derby' # driver not loaded for plain JDBC
Jdbc::Derby.load_driver(:require)

ActiveRecord::Base.establish_connection(config)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.2.9.1 test/db/jdbc_derby.rb
activerecord-jdbc-adapter-1.2.9 test/db/jdbc_derby.rb
activerecord-jdbc-adapter-1.2.8 test/db/jdbc_derby.rb
activerecord-jdbc-adapter-1.2.5 test/db/jdbc_derby.rb