Antigravity 초안

This commit is contained in:
Lectom C Han
2026-01-08 15:32:15 +09:00
commit 12262b4479
32 changed files with 3048 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections.Generic;
namespace ExcelKv.Core;
// --- Schema Middleware ---
public class SchemaRegistry
{
private Dictionary<string, HashSet<string>> _knownSchemas = new();
public void RegisterSchema(string namespaceKey, List<string> newColumns)
{
if (!_knownSchemas.ContainsKey(namespaceKey))
{
_knownSchemas[namespaceKey] = new HashSet<string>();
foreach (var col in newColumns) _knownSchemas[namespaceKey].Add(col);
}
else
{
var existing = _knownSchemas[namespaceKey];
foreach (var col in newColumns) if (!existing.Contains(col)) existing.Add(col);
}
}
}