Add vCenter reference cache tables and update related functions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-13 14:45:13 +11:00
parent 5cd8f9c2a1
commit 18be1fbe06
4 changed files with 420 additions and 45 deletions

View File

@@ -180,6 +180,8 @@ func ensureDestinationImportTable(ctx context.Context, destination *sqlx.DB, tab
return EnsureVcenterLatestTotalsTable(ctx, destination)
case tableName == "vcenter_aggregate_totals":
return EnsureVcenterAggregateTotalsTable(ctx, destination)
case tableName == "vcenter_folder_cache", tableName == "vcenter_resource_pool_cache", tableName == "vcenter_host_cache":
return EnsureVcenterReferenceCacheTables(ctx, destination)
default:
return fmt.Errorf("source table %q does not exist in postgres and cannot be auto-created", tableName)
}