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

#include <SqlMigration.hpp>

Public Attributes

std::function< bool(SqlConnection &, MigrationManager &)> requiresBackup
 

Detailed Description

Options of a pre-migrate step.

Definition at line 395 of file SqlMigration.hpp.

Member Data Documentation

◆ requiresBackup

std::function<bool(SqlConnection&, MigrationManager&)> Lightweight::SqlMigration::PreMigrateStepOptions::requiresBackup

Whether this run of the step demands a backup of the database taken after its last migration (see MigrationManager::BackupRequirementFor), e.g. "the dry-run plan is not empty". Evaluated on the migration connection before the run; empty means never. Hosts call it on every requirement check and from any thread (a worker, or a GUI's own), so keep it cheap.

Definition at line 401 of file SqlMigration.hpp.


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