3#include "data/LedgerCache.hpp"
4#include "migration/MigrationManagerInterface.hpp"
5#include "util/config/ConfigDefinition.hpp"
25 std::string migratorName;
28 std::variant<Status, Migration> state;
59 std::shared_ptr<migration::MigrationManagerInterface> migrationManager_;
85 migrate(std::string
const& name);
MigratorApplication(util::config::ClioConfigDefinition const &config, MigrateSubCmd command)
Construct a new MigratorApplication object.
Definition MigrationApplication.cpp:20
int run()
Run the application.
Definition MigrationApplication.cpp:40
Cache for an entire ledger.
Definition LedgerCache.hpp:30
All the config data will be stored and extracted from this class.
Definition ConfigDefinition.hpp:31
Run a migration.
Definition MigrationApplication.hpp:24
Check the status of the migrations.
Definition MigrationApplication.hpp:20
The command to run for migration framework.
Definition MigrationApplication.hpp:16
static MigrateSubCmd migration(std::string const &name)
Helper function to create a migration command.
Definition MigrationApplication.hpp:48
static MigrateSubCmd status()
Helper function to create a status command.
Definition MigrationApplication.hpp:36