|
Lightweight 0.20260617.0
|
#include <SqlMigration.hpp>
Public Attributes | |
| std::vector< MigrationTimestamp > | revertedTimestamps |
| Successfully reverted migrations. | |
| std::optional< MigrationTimestamp > | failedAt |
| 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. | |
Result of reverting multiple migrations.
Definition at line 147 of file SqlMigration.hpp.
| std::vector<MigrationTimestamp> Lightweight::SqlMigration::RevertResult::revertedTimestamps |
Successfully reverted migrations.
Definition at line 149 of file SqlMigration.hpp.
| std::optional<MigrationTimestamp> Lightweight::SqlMigration::RevertResult::failedAt |
Migration that failed, if any.
Definition at line 150 of file SqlMigration.hpp.
| std::string Lightweight::SqlMigration::RevertResult::errorMessage |
Short error message if failed (driver message only)
Definition at line 151 of file SqlMigration.hpp.
| 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.
| 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.
| 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.
| std::string Lightweight::SqlMigration::RevertResult::sqlState |
SQLSTATE diagnostic code from the driver, if available.
Definition at line 168 of file SqlMigration.hpp.
| SQLINTEGER Lightweight::SqlMigration::RevertResult::nativeErrorCode {} |
Native driver error code, if available.
Definition at line 171 of file SqlMigration.hpp.