|
Lightweight 0.20261031.0
|
#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. | |
One row of the schema_backups table.
Definition at line 264 of file SqlMigration.hpp.
| 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.
| 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.
| std::string Lightweight::SqlMigration::BackupRecord::archiveFileName |
UTF-8, without its directory.
Definition at line 272 of file SqlMigration.hpp.
| std::string Lightweight::SqlMigration::BackupRecord::archiveSha256 |
SHA-256 of the archive file, lowercase hex.
Definition at line 274 of file SqlMigration.hpp.
| 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.
| 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.
| BackupRecordKind Lightweight::SqlMigration::BackupRecord::kind = BackupRecordKind::Backup |
What the record documents.
Definition at line 282 of file SqlMigration.hpp.