Browse Source

Add Initialize to ILiteDbContext

pull/14/head
Ionite 1 year ago
parent
commit
ef9ca1c91c
No known key found for this signature in database
  1. 2
      StabilityMatrix/Database/ILiteDbContext.cs

2
StabilityMatrix/Database/ILiteDbContext.cs

@ -14,6 +14,8 @@ public interface ILiteDbContext : IDisposable
ILiteCollectionAsync<CivitModelVersion> CivitModelVersions { get; }
ILiteCollectionAsync<CivitModelQueryCacheEntry> CivitModelQueryCache { get; }
void Initialize(string connectionString);
Task<(CivitModel?, CivitModelVersion?)> FindCivitModelFromFileHashAsync(string hashBlake3);
Task<bool> UpsertCivitModelAsync(CivitModel civitModel);
Task<bool> UpsertCivitModelAsync(IEnumerable<CivitModel> civitModels);

Loading…
Cancel
Save