sgns::Migration3_5_0To3_5_1¶
#include <Migration3_5_0To3_5_1.hpp>
Inherits from sgns::IMigrationStep, std::enable_shared_from_this< Migration3_5_0To3_5_1 >
Public Functions¶
| Name | |
|---|---|
| Migration3_5_0To3_5_1(std::shared_ptr< boost::asio::io_context > ioContext, std::shared_ptr< ipfs_pubsub::GossipPubSub > pubSub, std::shared_ptr< ipfs_lite::ipfs::graphsync::Network > graphsync, std::shared_ptr< libp2p::protocol::Scheduler > scheduler, std::shared_ptr< ipfs_lite::ipfs::graphsync::RequestIdGenerator > generator, std::string writeBasePath, std::string base58key) | |
| virtual std::string | FromVersion() const override Get the version from which the migration starts. |
| virtual std::string | ToVersion() const override Get the version to which the migration applies. |
| virtual outcome::result< void > | Init() override Initializes internal variables after constructor. |
| virtual outcome::result< void > | Apply() override Execute the migration logic. |
| virtual outcome::result< void > | ShutDown() override Shuts down internal variables. |
| virtual outcome::result< bool > | IsRequired() const override Check if migration is required. |
Additional inherited members¶
Public Functions inherited from sgns::IMigrationStep
| Name | |
|---|---|
| virtual | ~IMigrationStep() =default |
| std::tuple< int, int, int > | ParseVersion(const std::string & version) const |
| bool | IsVersionLessThan(const std::string & lhs, const std::string & rhs) const |
Public Functions Documentation¶
function Migration3_5_0To3_5_1¶
Migration3_5_0To3_5_1(
std::shared_ptr< boost::asio::io_context > ioContext,
std::shared_ptr< ipfs_pubsub::GossipPubSub > pubSub,
std::shared_ptr< ipfs_lite::ipfs::graphsync::Network > graphsync,
std::shared_ptr< libp2p::protocol::Scheduler > scheduler,
std::shared_ptr< ipfs_lite::ipfs::graphsync::RequestIdGenerator > generator,
std::string writeBasePath,
std::string base58key
)
function FromVersion¶
Get the version from which the migration starts.
Return: The source version string.
Reimplements: sgns::IMigrationStep::FromVersion
function ToVersion¶
Get the version to which the migration applies.
Return: The target version string.
Reimplements: sgns::IMigrationStep::ToVersion
function Init¶
Initializes internal variables after constructor.
Return: Outcome of the operation
Reimplements: sgns::IMigrationStep::Init
function Apply¶
Execute the migration logic.
Return: Outcome of the operation.
Reimplements: sgns::IMigrationStep::Apply
function ShutDown¶
Shuts down internal variables.
Return: Outcome of the operation
Reimplements: sgns::IMigrationStep::ShutDown
function IsRequired¶
Check if migration is required.
Return: outcome::result
Reimplements: sgns::IMigrationStep::IsRequired
Updated on 2026-03-04 at 13:10:43 -0800