Path: redb/redb.Export/Models/ExportFooter.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.Export/Models/ExportFooter.cs
----
namespace redb.Export.Models;
///
/// Represents the footer (trailer) record of a .redb export file.
/// The footer is always the last line written to the JSONL stream
/// and contains aggregate statistics and the global-identity sequence value
/// required for a consistent restore.
///
public sealed class ExportFooter
{
/// Record type discriminator. Always "footer".
public string Type => "footer";
/// Value of the global_identity sequence at the time of export.
public long SequenceValue { get; init; }
/// Total number of type definition records exported.
public long TotalTypes { get; init; }
/// Total number of role records exported.
public long TotalRoles { get; init; }
/// Total number of user records exported.
public long TotalUsers { get; init; }
/// Total number of user-role junction records exported.
public long TotalUserRoles { get; init; }
/// Total number of list definition records exported.
public long TotalLists { get; init; }
/// Total number of list item records exported.
public long TotalListItems { get; init; }
/// Total number of scheme definition records exported.
public long TotalSchemes { get; init; }
/// Total number of structure (field) definition records exported.
public long TotalStructures { get; init; }
///
/// Total number of migration history records exported. null in a file written by an earlier version, which
/// did not carry the migration history; the import checks the total only when it is present.
///
public long? TotalMigrations { get; init; }
/// Total number of object instance records exported.
public long TotalObjects { get; init; }
/// Total number of permission records exported.
public long TotalPermissions { get; init; }
/// Total number of property-value records exported.
public long TotalValues { get; init; }
/// SHA-256 checksum of the export file (hex-encoded, lowercase).
public string Checksum { get; init; } = "";
/// Wall-clock duration of the export operation.
public TimeSpan Duration { get; init; }
}