Class: DataMapper::Spec::Adapters::SqlserverAdapter
- Inherits:
-
Adapter
- Object
- Adapter
- DataMapper::Spec::Adapters::SqlserverAdapter
- Defined in:
- lib/dm-sqlserver-adapter/spec/setup.rb
Instance Method Summary collapse
Instance Method Details
#connection_uri ⇒ Object
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_name ⇒ Object
17 18 19 |
# File 'lib/dm-sqlserver-adapter/spec/setup.rb', line 17 def instance_name ENV.fetch('DM_DB_SQLSERVER_INSTANCE', 'SQLEXPRESS') end |