Lightweight 0.20260617.0
Loading...
Searching...
No Matches
Lightweight::SqlMigration::RevertResult Struct Reference

#include <SqlMigration.hpp>

Public Attributes

std::vector< MigrationTimestamprevertedTimestamps
 Successfully reverted migrations.
 
std::optional< MigrationTimestampfailedAt
 Migration that failed, if any.
 
std::string errorMessage
 Short error message if failed (driver message only)
 
std::string failedTitle
 
std::size_t failedStepIndex {}
 
std::string failedSql
 
std::string sqlState
 SQLSTATE diagnostic code from the driver, if available.
 
SQLINTEGER nativeErrorCode {}
 Native driver error code, if available.
 

Detailed Description

Result of reverting multiple migrations.

Definition at line 147 of file SqlMigration.hpp.

Member Data Documentation

◆ revertedTimestamps

std::vector<MigrationTimestamp> Lightweight::SqlMigration::RevertResult::revertedTimestamps

Successfully reverted migrations.

Definition at line 149 of file SqlMigration.hpp.

◆ failedAt

std::optional<MigrationTimestamp> Lightweight::SqlMigration::RevertResult::failedAt

Migration that failed, if any.

Definition at line 150 of file SqlMigration.hpp.

◆ errorMessage

std::string Lightweight::SqlMigration::RevertResult::errorMessage

Short error message if failed (driver message only)

Definition at line 151 of file SqlMigration.hpp.

◆ failedTitle

std::string Lightweight::SqlMigration::RevertResult::failedTitle

Title of the migration that failed (if any). Empty when no failure or when the failure happened before the migration could be located.

Definition at line 155 of file SqlMigration.hpp.

◆ failedStepIndex

std::size_t Lightweight::SqlMigration::RevertResult::failedStepIndex {}

Zero-based step index inside the failed migration's plan. Meaningful only when failedAt is set and the failure came from a driver error (not from e.g. a missing registered migration).

Definition at line 160 of file SqlMigration.hpp.

◆ failedSql

std::string Lightweight::SqlMigration::RevertResult::failedSql

The exact SQL statement that failed, if available. Empty when the failure happened outside of SQL execution (e.g. missing Down() implementation, unregistered migration).

Definition at line 165 of file SqlMigration.hpp.

◆ sqlState

std::string Lightweight::SqlMigration::RevertResult::sqlState

SQLSTATE diagnostic code from the driver, if available.

Definition at line 168 of file SqlMigration.hpp.

◆ nativeErrorCode

SQLINTEGER Lightweight::SqlMigration::RevertResult::nativeErrorCode {}

Native driver error code, if available.

Definition at line 171 of file SqlMigration.hpp.


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