Path: redb/redb.Core/Models/RedbDropReport.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Models/RedbDropReport.cs ---- using System.Collections.Generic; namespace redb.Core.Models; /// /// What found and did: the structures of /// the scheme its Props class does not declare, with the number of stored values of each. /// public sealed record RedbDropReport( string SchemeName, long SchemeId, int ClassVersion, int StoredVersion, bool DryRun, IReadOnlyList Items) { /// One line for a log: the scheme, both versions and what was (or would be) deleted. public override string ToString() => $"Scheme '{SchemeName}' (id {SchemeId}), class version {ClassVersion}, database version {StoredVersion}: " + (Items.Count == 0 ? "no structure the class does not declare." : (DryRun ? "would delete " : "deleted ") + string.Join(", ", Items.Select(i => $"{i.Path} ({i.Values} values)")) + "."); } /// A structure the class does not declare: its path in the scheme, its id and its stored values. public sealed record RedbDropReportItem(string Path, long StructureId, long Values, bool Deleted);