Добавьте файлы проекта.

This commit is contained in:
FrigaT
2026-01-05 00:29:19 +03:00
committed by FrigaT
parent 76a09d80d4
commit d0653c2098
105 changed files with 6729 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
namespace SQLVision.Services.Configuration;
public class CacheOptions
{
public bool Enabled { get; set; } = true;
public int DurationMinutes { get; set; } = 10;
public long MaxSizeBytes { get; set; } = 100 * 1024 * 1024; // 100MB
}

View File

@@ -0,0 +1,13 @@
namespace SQLVision.Services.Configuration;
public class DatabaseOptions
{
public const string SectionName = "Database";
public string DefaultConnection { get; set; } = string.Empty;
public Dictionary<string, string> ConnectionStrings { get; set; } = new();
public int CommandTimeout { get; set; } = 300;
public bool EnableStatistics { get; set; } = true;
public CacheOptions Cache { get; set; } = new();
public RetryOptions Retry { get; set; } = new();
}

View File

@@ -0,0 +1,8 @@
namespace SQLVision.Services.Configuration;
public class RetryOptions
{
public bool Enabled { get; set; } = true;
public int MaxRetries { get; set; } = 3;
public int DelayMilliseconds { get; set; } = 1000;
}