Sha256: 4545596af7cc5cf0daaa2eecb8472992a7f5da7853c432189a68e177d6c46903

Contents?: true

Size: 666 Bytes

Versions: 13

Compression:

Stored size: 666 Bytes

Contents

print "Using native SQLite3\n"
require_dependency 'fixtures/course'
require 'logger'
ActiveRecord::Base.logger = Logger.new("debug.log")

class SqliteError < StandardError
end

def make_connection(clazz, db_definitions_file)
  clazz.establish_connection(:adapter => 'sqlite3', :database  => ':memory:')
  File.read("#{File.dirname(__FILE__)}/../../fixtures/db_definitions/#{db_definitions_file}").split(';').each do |command|
    clazz.connection.execute(command) unless command.strip.empty?
  end
end

make_connection(ActiveRecord::Base, 'sqlite.sql')
make_connection(Course, 'sqlite2.sql')
load("#{File.dirname(__FILE__)}/../../fixtures/db_definitions/schema.rb")

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
activerecord-2.0.5 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-2.0.1 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-2.0.2 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-2.0.4 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-2.0.0 test/connections/native_sqlite3/in_memory_connection.rb
radiant-0.6.5.1 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
radiant-0.6.5 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
radiant-0.6.7 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
radiant-0.6.6 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
radiant-0.6.9 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
radiant-0.6.8 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
spree-0.0.9 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
spree-0.2.0 vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb