Sha256: 83bb73880a78589d811d934a37e51b2a979f8866c5b6a7e3ceefc66ede5d3222
Contents?: true
Size: 953 Bytes
Versions: 30
Compression:
Stored size: 953 Bytes
Contents
require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys') require File.join(PROJECT_ROOT, 'test', 'connections', 'connection_spec') namespace :sqlserver do desc 'Build the SQL Server test database' task :build_database => :load_connection do options_str = connection_string schema = File.join(PROJECT_ROOT, 'test', 'fixtures', 'db_definitions', 'sqlserver.sql') sh %( sqsh #{options_str} -i #{schema} ) end desc 'Drop the SQL Server test database' task :drop_database => :load_connection do options_str = connection_string schema = File.join(PROJECT_ROOT, 'test', 'fixtures', 'db_definitions', 'sqlserver.drop.sql') sh %( sqsh #{options_str} -i #{schema} ) end desc 'Rebuild the SQL Server test database' task :rebuild_database => [:drop_database, :build_database] task :load_connection do require File.join(PROJECT_ROOT, "test", "connections", "native_sqlserver", "connection") end end
Version data entries
30 entries across 30 versions & 1 rubygems