trying filesystem elq for mono linux.

pull/6/head
kay.one 12 years ago
parent 620dc2d086
commit dfb02884a0

@ -20,7 +20,7 @@ namespace NzbDrone.Core.Test.Datastore
[SetUp] [SetUp]
public void SetUp() public void SetUp()
{ {
WithObjectDb(); WithObjectDb(false);
testSeries = Builder<Series> testSeries = Builder<Series>
.CreateNew() .CreateNew()

@ -22,13 +22,7 @@ namespace NzbDrone.Core.Datastore
public EloqueraDb CreateMemoryDb() public EloqueraDb CreateMemoryDb()
{ {
if (EnvironmentProvider.IsMono)
{
return InternalCreate("server=(local);password=;options=inmemory", Guid.NewGuid().ToString());
}
return InternalCreate("server=(local);password=;options=inmemory;uselocalpath=" + dllPath, Guid.NewGuid().ToString()); return InternalCreate("server=(local);password=;options=inmemory;uselocalpath=" + dllPath, Guid.NewGuid().ToString());
} }
public EloqueraDb Create(string dbPath = null) public EloqueraDb Create(string dbPath = null)
@ -40,17 +34,9 @@ namespace NzbDrone.Core.Datastore
var file = new FileInfo(dbPath); var file = new FileInfo(dbPath);
if (EnvironmentProvider.IsMono)
{
return InternalCreate(string.Format("server=(local);password=;usedatapath={0}", file.Directory.FullName), file.Name);
}
else
{
return InternalCreate(string.Format("server=(local);password=;usedatapath={0};uselocalpath={1}", file.Directory.FullName, dllPath), file.Name); return InternalCreate(string.Format("server=(local);password=;usedatapath={0};uselocalpath={1}", file.Directory.FullName, dllPath), file.Name);
} }
}
private EloqueraDb InternalCreate(string connectionString, string databaseName) private EloqueraDb InternalCreate(string connectionString, string databaseName)
{ {
var db = new DB(connectionString); var db = new DB(connectionString);

Binary file not shown.
Loading…
Cancel
Save