generated from noisedestroyers/claude
[claudesquad] update from 'database' on 22 Jul 25 13:45 EDT (paused)
This commit is contained in:
47
src/Database/Configuration/DatabaseConfiguration.cs
Normal file
47
src/Database/Configuration/DatabaseConfiguration.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
namespace Database.Configuration
|
||||
{
|
||||
public class DatabaseConfiguration
|
||||
{
|
||||
public const string SectionName = "Database";
|
||||
|
||||
public string ConnectionString { get; set; } = string.Empty;
|
||||
|
||||
public bool EnableSensitiveDataLogging { get; set; } = false;
|
||||
|
||||
public bool EnableDetailedErrors { get; set; } = false;
|
||||
|
||||
public int CommandTimeout { get; set; } = 30;
|
||||
|
||||
public bool AutoMigrate { get; set; } = false;
|
||||
|
||||
public bool SeedTestData { get; set; } = false;
|
||||
|
||||
public string Environment { get; set; } = "Development";
|
||||
|
||||
public PoolingOptions Pooling { get; set; } = new();
|
||||
|
||||
public RetryOptions Retry { get; set; } = new();
|
||||
}
|
||||
|
||||
public class PoolingOptions
|
||||
{
|
||||
public int MinPoolSize { get; set; } = 5;
|
||||
|
||||
public int MaxPoolSize { get; set; } = 100;
|
||||
|
||||
public int ConnectionIdleLifetime { get; set; } = 300; // seconds
|
||||
|
||||
public int ConnectionPruningInterval { get; set; } = 10; // seconds
|
||||
}
|
||||
|
||||
public class RetryOptions
|
||||
{
|
||||
public bool EnableRetryOnFailure { get; set; } = true;
|
||||
|
||||
public int MaxRetryCount { get; set; } = 5;
|
||||
|
||||
public int MaxRetryDelay { get; set; } = 30; // seconds
|
||||
|
||||
public List<string> ErrorNumbersToAdd { get; set; } = new();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user