Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::SqlMigration::MigrationManager::HardResetResult Struct Reference

Result of a HardReset call. More...

#include <SqlMigration.hpp>

Public Attributes

bool wasDryRun = false
 
std::vector< SqlSchema::FullyQualifiedTableName > droppedTables
 
std::vector< SqlSchema::FullyQualifiedTableName > absentTables
 
std::vector< SqlSchema::FullyQualifiedTableName > preservedTables
 
bool schemaMigrationsDropped = false
 

Detailed Description

Result of a HardReset call.

Definition at line 464 of file SqlMigration.hpp.

Member Data Documentation

◆ wasDryRun

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

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

Definition at line 468 of file SqlMigration.hpp.

◆ droppedTables

std::vector<SqlSchema::FullyQualifiedTableName> Lightweight::SqlMigration::MigrationManager::HardResetResult::droppedTables

Tables the registered migrations would have created and were also present in the live DB — these were dropped (or would be dropped on a real run).

Definition at line 471 of file SqlMigration.hpp.

◆ absentTables

std::vector<SqlSchema::FullyQualifiedTableName> Lightweight::SqlMigration::MigrationManager::HardResetResult::absentTables

Tables registered migrations declare but that aren't in the live DB — nothing to do for these. Reported for visibility only.

Definition at line 474 of file SqlMigration.hpp.

◆ preservedTables

std::vector<SqlSchema::FullyQualifiedTableName> Lightweight::SqlMigration::MigrationManager::HardResetResult::preservedTables

Tables in the live DB the registered migrations don't know about — left alone (user-owned). Reported prominently so operators notice.

Definition at line 477 of file SqlMigration.hpp.

◆ schemaMigrationsDropped

bool Lightweight::SqlMigration::MigrationManager::HardResetResult::schemaMigrationsDropped = false

Whether the schema_migrations table itself was dropped (always true on a real run, false on dry-run).

Definition at line 480 of file SqlMigration.hpp.


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