Class: DataMapper::Spec::Adapters::SqlserverAdapter

Inherits:
Adapter
  • Object
show all
Defined in:
lib/dm-sqlserver-adapter/spec/setup.rb

Instance Method Summary collapse

Instance Method Details

#connection_uriObject



9
10
11
12
13
14
15
# File 'lib/dm-sqlserver-adapter/spec/setup.rb', line 9

def connection_uri
  if instance_name.size > 0
    "#{super};instance=#{instance_name}"
  else
    super
  end
end

#instance_nameObject



17
18
19
# File 'lib/dm-sqlserver-adapter/spec/setup.rb', line 17

def instance_name
  ENV.fetch('DM_DB_SQLSERVER_INSTANCE', 'SQLEXPRESS')
end