Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult Struct Reference

Result of an UnicodeUpgradeTables call. More...

#include <SqlMigration.hpp>

Public Attributes

bool wasDryRun = false
 
std::vector< ColumnUpgradeEntry > columns
 
std::vector< SqlCompositeForeignKeyConstraint > rebuiltForeignKeys
 
std::vector< std::string > rebuiltObjects
 
std::vector< std::vector< SqlSchema::FullyQualifiedTableName > > units
 
bool wasCancelled = false
 
std::size_t committedUnitCount = 0
 

Detailed Description

Result of an UnicodeUpgradeTables call.

Definition at line 910 of file SqlMigration.hpp.

Member Data Documentation

◆ wasDryRun

bool Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::wasDryRun = false

True when the populating call was a dry-run; the result describes the would-be diff and no DDL was issued.

Definition at line 914 of file SqlMigration.hpp.

◆ columns

std::vector<ColumnUpgradeEntry> Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::columns

Columns whose live type drifted from the intended type and were upgraded (or would be on a real run).

Definition at line 917 of file SqlMigration.hpp.

◆ rebuiltForeignKeys

std::vector<SqlCompositeForeignKeyConstraint> Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::rebuiltForeignKeys

Foreign keys that had to be dropped + re-added to upgrade their participating columns. Reported so operators see the FK churn.

Definition at line 920 of file SqlMigration.hpp.

◆ rebuiltObjects

std::vector<std::string> Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::rebuiltObjects

SQL Server: every object that depends on an upgraded column — keys, unique, foreign-key, default and check constraints, indexes, statistics — and is dropped and recreated under its original name around the type change.

Definition at line 924 of file SqlMigration.hpp.

◆ units

std::vector<std::vector<SqlSchema::FullyQualifiedTableName> > Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::units

The tables in the order they are upgraded, grouped into units: the tables a foreign key joins through an upgraded column share one unit, and each unit is upgraded and committed in a transaction of its own.

Definition at line 928 of file SqlMigration.hpp.

◆ wasCancelled

bool Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::wasCancelled = false

True when the call stopped after a committed unit because its progress task asked to cancel; a later call continues with the next unit.

Definition at line 931 of file SqlMigration.hpp.

◆ committedUnitCount

std::size_t Lightweight::SqlMigration::MigrationManager::UnicodeUpgradeResult::committedUnitCount = 0

Units this call committed: all of units unless it was cancelled, 0 for a dry run. A failing call throws and returns no result.

Definition at line 934 of file SqlMigration.hpp.


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