Add SQLite persistence, import-snapshot tool, and karma functionality

This commit is contained in:
Ilya Groshev
2026-04-20 09:57:47 +03:00
parent c9ad3fa4f4
commit c33e738fd5
70 changed files with 4151 additions and 833 deletions
@@ -138,6 +138,14 @@ func SelectTables(all map[string]string, requested []string) map[string]string {
return selected
}
func ProjectTables(user store.UserState, requested []string) map[string]string {
result := make(map[string]string, len(requested))
for _, table := range requested {
result[table] = projectTable(table, user)
}
return result
}
func BuildDiffFromTables(tables map[string]string) map[string]*pb.DiffData {
diff := make(map[string]*pb.DiffData, len(tables))
for table, payload := range tables {