Sha256: 8921ef3c823a6b851bd82e278673ac6911fa5943abd2aa00328def49fa329e67

Contents?: true

Size: 877 Bytes

Versions: 15

Compression:

Stored size: 877 Bytes

Contents

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

namespace :oracle do
  desc 'Build the Oracle test databases'
  task :build_databases => :load_connection do
    options_str = connection_string

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

  desc 'Drop the Oracle test databases'
  task :drop_databases => :load_connection do 
    options_str = connection_string
    sh %( sqlplus #{options_str} < #{File.join(SCHEMA_PATH, 'oracle.drop.sql')} )
  end

  desc 'Rebuild the Oracle test databases'
  task :rebuild_databases => [:drop_databases, :build_databases]

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
composite_primary_keys-5.0.5 tasks/databases/oracle.rake
composite_primary_keys-5.0.4 tasks/databases/oracle.rake
composite_primary_keys-5.0.2 tasks/databases/oracle.rake
composite_primary_keys-5.0.1 tasks/databases/oracle.rake
composite_primary_keys-5.0.0 tasks/databases/oracle.rake
composite_primary_keys-5.0.0.rc1 tasks/databases/oracle.rake
composite_primary_keys-4.1.2 tasks/databases/oracle.rake
composite_primary_keys-4.1.1 tasks/databases/oracle.rake
composite_primary_keys-4.0.0 tasks/databases/oracle.rake
composite_primary_keys-4.0.0.beta9 tasks/databases/oracle.rake
composite_primary_keys-4.0.0.beta8 tasks/databases/oracle.rake
composite_primary_keys-4.0.0.beta7 tasks/databases/oracle.rake
composite_primary_keys-4.0.0.beta6 tasks/databases/oracle.rake
composite_primary_keys-4.0.0.beta5 tasks/databases/oracle.rake
composite_primary_keys-4.0.0.beta4 tasks/databases/oracle.rake