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