Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::SqlBackup::RestoreReport Struct Reference

Bounded failure report of a whole restore. More...

#include <SqlBackup.hpp>

Public Member Functions

std::uint64_t TotalFailedRows () const noexcept
 
std::uint64_t NulledCellCount () const noexcept
 
bool WorkerStopped () const noexcept
 
bool HasFailures () const noexcept
 

Public Attributes

std::vector< TableRestoreReport > tables
 Only tables with failures, sorted by tableName.
 
std::vector< std::string > incompleteTables
 Tables with chunks left unprocessed by a stopped worker.
 
std::uint64_t unattributedChunkErrors {}
 Unreadable archive entries no table could be named for.
 

Detailed Description

Bounded failure report of a whole restore.

Definition at line 540 of file SqlBackup.hpp.

Member Function Documentation

◆ TotalFailedRows()

std::uint64_t Lightweight::SqlBackup::RestoreReport::TotalFailedRows ( ) const
inlinenoexcept
Returns
The sum of TableRestoreReport::failedRowCount over all tables.

Definition at line 550 of file SqlBackup.hpp.

References tables.

◆ NulledCellCount()

std::uint64_t Lightweight::SqlBackup::RestoreReport::NulledCellCount ( ) const
inlinenoexcept
Returns
The sum of TableRestoreReport::NulledCellCount() over all tables.

Definition at line 559 of file SqlBackup.hpp.

References tables.

◆ WorkerStopped()

bool Lightweight::SqlBackup::RestoreReport::WorkerStopped ( ) const
inlinenoexcept
Returns
true if a worker stopped early, leaving tables incomplete.

Definition at line 568 of file SqlBackup.hpp.

References incompleteTables.

◆ HasFailures()

bool Lightweight::SqlBackup::RestoreReport::HasFailures ( ) const
inlinenoexcept
Returns
true if anything failed during the restore.

Definition at line 574 of file SqlBackup.hpp.

References incompleteTables, tables, and unattributedChunkErrors.

Member Data Documentation

◆ tables

std::vector<TableRestoreReport> Lightweight::SqlBackup::RestoreReport::tables

Only tables with failures, sorted by tableName.

Definition at line 543 of file SqlBackup.hpp.

Referenced by HasFailures(), NulledCellCount(), and TotalFailedRows().

◆ incompleteTables

std::vector<std::string> Lightweight::SqlBackup::RestoreReport::incompleteTables

Tables with chunks left unprocessed by a stopped worker.

Definition at line 545 of file SqlBackup.hpp.

Referenced by HasFailures(), and WorkerStopped().

◆ unattributedChunkErrors

std::uint64_t Lightweight::SqlBackup::RestoreReport::unattributedChunkErrors {}

Unreadable archive entries no table could be named for.

Definition at line 547 of file SqlBackup.hpp.

Referenced by HasFailures().


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