Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
migration::impl::MigratorSpec Concept Reference

The migrator specification concept. More...

#include <Spec.hpp>

Concept definition

template<typename T, typename Backend>
concept MigratorSpec =
requires(std::shared_ptr<Backend> const& backend, util::config::ObjectView const& cfg) {
// Check that 'kNAME' exists and is a string
{ T::kNAME } -> std::convertible_to<std::string>;
// Check that 'kDESCRIPTION' exists and is a string
{ T::kDESCRIPTION } -> std::convertible_to<std::string>;
// Check that the migrator specifies the backend type it supports
typename T::Backend;
// Check that 'runMigration' exists and is callable
{ T::runMigration(backend, cfg) } -> std::same_as<void>;
}
Provides a view into a subset of configuration data defined by a prefix.
Definition ObjectView.hpp:21
The migrator specification concept.
Definition Spec.hpp:16

Detailed Description

The migrator specification concept.