|
Lightweight 0.20251202.0
|
The interface for progress updates. More...
#include <SqlBackup.hpp>
Public Member Functions | |
| ProgressManager (ProgressManager const &)=default | |
| ProgressManager & | operator= (ProgressManager const &)=default |
| ProgressManager (ProgressManager &&)=default | |
| ProgressManager & | operator= (ProgressManager &&)=default |
| virtual void | Update (Progress const &p)=0 |
| Gets called when the progress of an individual backup/restore operation changes. | |
| virtual void | AllDone ()=0 |
| Gets called when all backup/restore operations are finished. | |
| virtual void | SetMaxTableNameLength (size_t) |
| virtual size_t | ErrorCount () const noexcept |
| Returns the number of errors encountered during the operation. | |
| virtual void | SetTotalItems (size_t) |
| virtual void | AddTotalItems (size_t) |
| virtual void | OnItemsProcessed (size_t) |
The interface for progress updates.
Definition at line 172 of file SqlBackup.hpp.
|
pure virtual |
Gets called when the progress of an individual backup/restore operation changes.
Implemented in Lightweight::SqlBackup::ErrorTrackingProgressManager.
|
inlinevirtual |
Sets the maximum length of a table name. This is used to align the output of the progress manager.
Definition at line 189 of file SqlBackup.hpp.
|
inlinevirtualnoexcept |
Returns the number of errors encountered during the operation.
Reimplemented in Lightweight::SqlBackup::ErrorTrackingProgressManager.
Definition at line 192 of file SqlBackup.hpp.
|
inlinevirtual |
Sets the total number of items to be processed (for ETA calculation).
| totalItems | Total number of items (rows) to process across all tables. |
Definition at line 199 of file SqlBackup.hpp.
|
inlinevirtual |
Adds to the total number of items for progressive ETA calculation. This is called as row counts become available during parallel counting.
| additionalItems | Number of additional items (rows) to add to the total. |
Definition at line 204 of file SqlBackup.hpp.
|
inlinevirtual |
Called when items are processed (for rate and ETA calculation).
| count | Number of items (rows) just processed. |
Definition at line 208 of file SqlBackup.hpp.