first commit

This commit is contained in:
2026-03-02 20:53:28 +01:00
commit d27c205106
63 changed files with 4593 additions and 0 deletions

23
Config/AuroraConfig.cs Normal file
View File

@@ -0,0 +1,23 @@
namespace HanaToolbox.Config;
public sealed class AuroraConfig
{
public bool Enabled { get; set; } = false;
public int ScheduleHour { get; set; } = 5;
public int ScheduleMinute { get; set; } = 0;
/// <summary>hdbuserstore key with admin rights (DROP SCHEMA, EXPORT, IMPORT, GRANT).</summary>
public string AdminUserKey { get; set; } = "CRONKEY";
/// <summary>Source schema to export and re-import as &lt;SourceSchema&gt;_AURORA.</summary>
public string SourceSchema { get; set; } = string.Empty;
/// <summary>DB user that receives ALL PRIVILEGES on the Aurora schema.</summary>
public string AuroraUser { get; set; } = string.Empty;
/// <summary>Directory used for temporary export files during the Aurora refresh.</summary>
public string BackupBasePath { get; set; } = "/hana/backup/aurora";
/// <summary>Thread count for export/import. 0 = auto (nproc/2).</summary>
public int Threads { get; set; } = 0;
}