Class: DataMapper::Spec::Adapters::SqliteAdapter

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

Instance Method Summary collapse

Instance Method Details

#connection_uriObject



11
12
13
14
15
16
17
18
# File 'lib/dm-sqlite-adapter/spec/setup.rb', line 11

def connection_uri
  if name == :default
    "sqlite3::memory:"
  else
    # sqlite doesn't support two in memory dbs
    "sqlite3://#{Dir.tmpdir}/#{storage_name}.db"
  end
end