Sha256: 950aefc7f572d2c445e30696a5bda27df1663321535cfda8342f81ba2416caec
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
ArJdbc::ConnectionMethods.module_eval do def derby_connection(config) config[:adapter_spec] ||= ::ArJdbc::Derby config[:adapter_class] = ActiveRecord::ConnectionAdapters::DerbyAdapter unless config.key?(:adapter_class) return jndi_connection(config) if jndi_config?(config) ArJdbc.load_driver(:Derby) unless config[:load_driver] == false config[:driver] ||= 'org.apache.derby.jdbc.EmbeddedDriver' # `database: memory:dbName` for an in memory Derby DB config[:url] ||= "jdbc:derby:#{config[:database]};create=true" embedded_driver(config) end alias_method :jdbcderby_connection, :derby_connection end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbc-adapter-ficoh-1.3.21-java | lib/arjdbc/derby/connection_methods.rb |