Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using LiteDB.Async;
|
|
|
|
using StabilityMatrix.Core.Database;
|
|
|
|
using StabilityMatrix.Core.Models.Api;
|
|
|
|
|
|
|
|
namespace StabilityMatrix.Avalonia.DesignData;
|
|
|
|
|
|
|
|
public class MockLiteDbContext : ILiteDbContext
|
|
|
|
{
|
|
|
|
public LiteDatabaseAsync Database => throw new NotImplementedException();
|
|
|
|
public ILiteCollectionAsync<CivitModel> CivitModels => throw new NotImplementedException();
|
|
|
|
public ILiteCollectionAsync<CivitModelVersion> CivitModelVersions => throw new NotImplementedException();
|
|
|
|
public ILiteCollectionAsync<CivitModelQueryCacheEntry> CivitModelQueryCache => throw new NotImplementedException();
|
|
|
|
public Task<(CivitModel?, CivitModelVersion?)> FindCivitModelFromFileHashAsync(string hashBlake3)
|
|
|
|
{
|
|
|
|
return Task.FromResult<(CivitModel?, CivitModelVersion?)>((null, null));
|
|
|
|
}
|
|
|
|
|
|
|
|
public Task<bool> UpsertCivitModelAsync(CivitModel civitModel)
|
|
|
|
{
|
|
|
|
return Task.FromResult(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public Task<bool> UpsertCivitModelAsync(IEnumerable<CivitModel> civitModels)
|
|
|
|
{
|
|
|
|
return Task.FromResult(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public Task<bool> UpsertCivitModelQueryCacheEntryAsync(CivitModelQueryCacheEntry entry)
|
|
|
|
{
|
|
|
|
return Task.FromResult(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
GC.SuppressFinalize(this);
|
|
|
|
}
|
|
|
|
}
|