Sha256: 71a53f0844f9146b6a8d1f793e3a34ee15e2924ec7bafebc40d155d62deba1fb
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
require 'logger' config = { :adapter => 'jdbc', :username => 'sa', :password => '', :driver => 'org.apache.derby.jdbc.EmbeddedDriver', :url => 'jdbc:derby:derby-testdb;create=true' } ActiveRecord::Base.establish_connection(config) logger = Logger.new 'derby-testdb.log' logger.level = Logger::DEBUG ActiveRecord::Base.logger = logger at_exit { # Clean up derby files require 'fileutils' Dir.glob('derby-testdb/**/*') {|f| File.delete(f)} FileUtils.rm_rf('derby-testdb') }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ActiveRecord-JDBC-0.2.4 | test/db/derby.rb |
ActiveRecord-JDBC-0.3 | test/db/derby.rb |
ActiveRecord-JDBC-0.3.1 | test/db/derby.rb |
ActiveRecord-JDBC-0.4 | test/db/derby.rb |