Sha256: 6fa1586484f8916fc94b0a16d062f66cfab4d4acae9869aac26d2b60cebbda1b

Contents?: true

Size: 961 Bytes

Versions: 12

Compression:

Stored size: 961 Bytes

Contents

require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')
require File.join(PROJECT_ROOT, 'test', 'connections', 'connection_spec')

namespace :oracle_enhanced do
  desc 'Build the Oracle test database'
  task :build_database => :load_connection do
    options_str = connection_string

    sql = File.join(PROJECT_ROOT, 'test', 'fixtures', 'db_definitions', 'oracle.sql')
    sh %( sqlplus #{options_str} < #{sql} )
  end

  desc 'Drop the Oracle test database'
  task :drop_database => :load_connection do
    options_str = connection_string

    sql = File.join(PROJECT_ROOT, 'test', 'fixtures', 'db_definitions', 'oracle.drop.sql')
    sh %( sqlplus #{options_str} < #{sql} )
  end

  desc 'Rebuild the Oracle test database'
  task :rebuild_database => [:drop_database, :build_database]

  task :load_connection do
    require File.join(PROJECT_ROOT, "test", "connections", "native_oracle_enhanced", "connection")
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
composite_primary_keys-8.1.8 tasks/databases/oracle_enhanced.rake
composite_primary_keys-8.1.7 tasks/databases/oracle_enhanced.rake
composite_primary_keys-8.1.6 tasks/databases/oracle_enhanced.rake
composite_primary_keys-8.1.5 tasks/databases/oracle_enhanced.rake
composite_primary_keys-9.0.4 tasks/databases/oracle_enhanced.rake
composite_primary_keys-9.0.2 tasks/databases/oracle_enhanced.rake
composite_primary_keys-9.0.1 tasks/databases/oracle_enhanced.rake
composite_primary_keys-8.1.4 tasks/databases/oracle_enhanced.rake
composite_primary_keys-9.0.0 tasks/databases/oracle_enhanced.rake
composite_primary_keys-9.0.0.beta1 tasks/databases/oracle_enhanced.rake
composite_primary_keys-8.1.3 tasks/databases/oracle_enhanced.rake
composite_primary_keys-8.1.2 tasks/databases/oracle_enhanced.rake