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

#include <SqlMigration.hpp>

Public Attributes

bool required = false
 Whether anything demands a backup.
 
std::vector< std::string > reasons
 What demands it: release <version>, migration <timestamp> "<title>" and step "<title>", in that order.
 
bool satisfied = true
 Whether nothing is required or the newest backup or restore record covers the database's current state.
 
std::optional< BackupRecord > lastBackup
 The newest backup or restore record; waived records are skipped.
 

Detailed Description

Whether the work a command will run needs a backup, and whether a recorded one satisfies it.

Definition at line 288 of file SqlMigration.hpp.

Member Data Documentation

◆ required

bool Lightweight::SqlMigration::BackupRequirement::required = false

Whether anything demands a backup.

Definition at line 291 of file SqlMigration.hpp.

◆ reasons

std::vector<std::string> Lightweight::SqlMigration::BackupRequirement::reasons

What demands it: release <version>, migration <timestamp> "<title>" and step "<title>", in that order.

Definition at line 293 of file SqlMigration.hpp.

◆ satisfied

bool Lightweight::SqlMigration::BackupRequirement::satisfied = true

Whether nothing is required or the newest backup or restore record covers the database's current state.

Definition at line 295 of file SqlMigration.hpp.

◆ lastBackup

std::optional<BackupRecord> Lightweight::SqlMigration::BackupRequirement::lastBackup

The newest backup or restore record; waived records are skipped.

Definition at line 297 of file SqlMigration.hpp.


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