mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-22 12:45:52 +00:00
@@ -19,6 +19,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "data/LedgerCacheInterface.hpp"
|
||||
#include "migration/MigrationManagerInterface.hpp"
|
||||
#include "util/newconfig/ConfigDefinition.hpp"
|
||||
|
||||
@@ -33,9 +34,10 @@ namespace migration::impl {
|
||||
*
|
||||
* @param config The configuration of the migration application, it contains the database connection configuration and
|
||||
* other migration specific configurations
|
||||
* @param cache The ledger cache to use
|
||||
* @return A shared pointer to the MigrationManagerInterface if the creation was successful, otherwise an error message
|
||||
*/
|
||||
std::expected<std::shared_ptr<MigrationManagerInterface>, std::string>
|
||||
makeMigrationManager(util::config::ClioConfigDefinition const& config);
|
||||
makeMigrationManager(util::config::ClioConfigDefinition const& config, data::LedgerCacheInterface& cache);
|
||||
|
||||
} // namespace migration::impl
|
||||
|
||||
Reference in New Issue
Block a user