Major restructuring, removed searchdomain field from Entity/Index, moved embeddingcache to SearchdomainManager, improved logging

This commit is contained in:
2025-06-22 02:11:09 +02:00
parent d2f4210e72
commit 9a6ee4ad75
9 changed files with 365 additions and 273 deletions

View File

@@ -6,10 +6,19 @@ namespace Server;
public class SQLHelper
{
public MySqlConnection connection;
public SQLHelper(MySqlConnection connection)
public string connectionString;
public SQLHelper(MySqlConnection connection, string connectionString)
{
this.connection = connection;
this.connectionString = connectionString;
}
public SQLHelper DuplicateConnection()
{
MySqlConnection newConnection = new(connectionString);
return new SQLHelper(newConnection, connectionString);
}
public DbDataReader ExecuteSQLCommand(string query, Dictionary<string, dynamic> parameters)
{
lock (connection)