Sha256: 75b7d0aa4c88be424cf395ea96900e44f291249afc1e65a6eb00da84b663f330

Contents?: true

Size: 349 Bytes

Versions: 15

Compression:

Stored size: 349 Bytes

Contents

require 'jdbc/sqlite3' if jruby?

config = {
  :adapter => jruby? ? 'jdbcsqlite3' : 'sqlite3', 
  :dbfile  => 'test.sqlite3.db'
#  :url => 'jdbc:sqlite:test.sqlite3.db',
#  :driver => 'org.sqlite.JDBC'
}

ActiveRecord::Base.establish_connection(config)

at_exit {
  # Clean up sqlite3 db when done
  Dir['test.sqlite3*'].each {|f| File.delete(f)}
}

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 test/db/sqlite3.rb
kb-activerecord-jdbc-adapter-0.9.7.1-java test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.7-java test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.6-java test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.5-java test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.4-java test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.3-java test/db/sqlite3.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.6 test/db/sqlite3.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.5 test/db/sqlite3.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.4 test/db/sqlite3.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.3 test/db/sqlite3.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.2 test/db/sqlite3.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.1 test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.2 test/db/sqlite3.rb
activerecord-jdbc-adapter-0.9.1 test/db/sqlite3.rb