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.
20 lines
736 B
20 lines
736 B
1 year ago
|
using LiteDB.Async;
|
||
1 year ago
|
using StabilityMatrix.Core.Models.Api;
|
||
1 year ago
|
|
||
1 year ago
|
namespace StabilityMatrix.Core.Database;
|
||
1 year ago
|
|
||
1 year ago
|
public interface ILiteDbContext : IDisposable
|
||
1 year ago
|
{
|
||
|
LiteDatabaseAsync Database { get; }
|
||
|
|
||
|
ILiteCollectionAsync<CivitModel> CivitModels { get; }
|
||
|
ILiteCollectionAsync<CivitModelVersion> CivitModelVersions { get; }
|
||
|
ILiteCollectionAsync<CivitModelQueryCacheEntry> CivitModelQueryCache { get; }
|
||
1 year ago
|
|
||
1 year ago
|
|
||
1 year ago
|
Task<(CivitModel?, CivitModelVersion?)> FindCivitModelFromFileHashAsync(string hashBlake3);
|
||
1 year ago
|
Task<bool> UpsertCivitModelAsync(CivitModel civitModel);
|
||
|
Task<bool> UpsertCivitModelAsync(IEnumerable<CivitModel> civitModels);
|
||
|
Task<bool> UpsertCivitModelQueryCacheEntryAsync(CivitModelQueryCacheEntry entry);
|
||
|
}
|