Lightweight 0.20261031.0
Loading...
Searching...
No Matches
Lightweight::SqlMigration::BackupRecord Struct Reference

#include <SqlMigration.hpp>

Public Attributes

std::uint64_t id = 0
 Assigned by the database; the newest record has the highest.
 
SqlDateTime createdAt
 
std::string archiveFileName
 UTF-8, without its directory.
 
std::string archiveSha256
 SHA-256 of the archive file, lowercase hex.
 
MigrationHistoryState observedState
 
std::string toolVersion
 The tool that wrote the record, e.g. dbtool 1.2.3.
 
BackupRecordKind kind = BackupRecordKind::Backup
 What the record documents.
 

Detailed Description

One row of the schema_backups table.

Definition at line 264 of file SqlMigration.hpp.

Member Data Documentation

◆ id

std::uint64_t Lightweight::SqlMigration::BackupRecord::id = 0

Assigned by the database; the newest record has the highest.

Definition at line 267 of file SqlMigration.hpp.

◆ createdAt

SqlDateTime Lightweight::SqlMigration::BackupRecord::createdAt

UTC, informational: for a backup when it started reading the database, for a restore when it finished. It plays no part in BackupRecordCovers.

Definition at line 270 of file SqlMigration.hpp.

◆ archiveFileName

std::string Lightweight::SqlMigration::BackupRecord::archiveFileName

UTF-8, without its directory.

Definition at line 272 of file SqlMigration.hpp.

◆ archiveSha256

std::string Lightweight::SqlMigration::BackupRecord::archiveSha256

SHA-256 of the archive file, lowercase hex.

Definition at line 274 of file SqlMigration.hpp.

◆ observedState

MigrationHistoryState Lightweight::SqlMigration::BackupRecord::observedState

The history the backup saw, from ReadMigrationHistoryState. Read it before the backup reads any data (for a restore: after it finished). A record is built only from a state read from the database, never from a clock. Stored: lastAppliedMigration and digest.

Definition at line 278 of file SqlMigration.hpp.

◆ toolVersion

std::string Lightweight::SqlMigration::BackupRecord::toolVersion

The tool that wrote the record, e.g. dbtool 1.2.3.

Definition at line 280 of file SqlMigration.hpp.

◆ kind

BackupRecordKind Lightweight::SqlMigration::BackupRecord::kind = BackupRecordKind::Backup

What the record documents.

Definition at line 282 of file SqlMigration.hpp.


The documentation for this struct was generated from the following file: