changed to sqlite connection to ef core

This commit is contained in:
PaulKoudelka committed 2026-08-04 17:27:26 +02:00
1 parent 23416b21fc
commit 3d68d73767
8 files changed
+1222 -503

No files matched your search

@@ -0,0 +1,15 @@
using System.Diagnostics.CodeAnalysis;
using Microsoft.EntityFrameworkCore;
namespace AIStudio.Tools.Databases.EmbeddingState;
internal static class EmbeddingStateSchemaMigrator
{
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(Migrations.InitialRagIndex))]
public static async Task MigrateAsync(EmbeddingStateDbContext context, CancellationToken token)
{
await context.Database.MigrateAsync(token);
await context.Database.ExecuteSqlRawAsync("PRAGMA journal_mode=WAL;", token);
}
}