Sha256: e76177a0f74426ff7d792a9098005c8be6015c4def29d1abdbc21b7dbce766a5

Contents?: true

Size: 669 Bytes

Versions: 87

Compression:

Stored size: 669 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

87 entries across 87 versions & 7 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/activerecord/test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.14.3 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.14.1 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.14.2 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.14.0 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.2 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.4 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.1 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.14.4 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.3 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.0 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.5 test/connections/native_sqlite3/in_memory_connection.rb
activerecord-1.15.6 test/connections/native_sqlite3/in_memory_connection.rb