initial commit

This commit is contained in:
voltsrage
2026-06-26 04:20:20 +08:00
commit 869006e5e7
64 changed files with 4632 additions and 0 deletions
@@ -0,0 +1,18 @@
public enum BatchTrack { Backfill, LiveCapture }
public static class BatchTrackExtensions
{
public static string ToDbString(this BatchTrack t) => t switch
{
BatchTrack.Backfill => "BACKFILL",
BatchTrack.LiveCapture => "LIVE_CAPTURE",
_ => throw new ArgumentOutOfRangeException(nameof(t))
};
public static BatchTrack FromDbString(string v) => v switch
{
"BACKFILL" => BatchTrack.Backfill,
"LIVE_CAPTURE" => BatchTrack.LiveCapture,
_ => throw new ArgumentOutOfRangeException(nameof(v), $"Unknown batch track: '{v}'")
};
}