TARAXA
Loading...
Searching...
No Matches
taraxa::storage::migration::Manager Class Reference

#include <migration_manager.hpp>

Public Member Functions

 Manager (std::shared_ptr< DbStorage > db)
 
template<typename T >
void registerMigration ()
 
void applyAll ()
 
void applyReceiptsByPeriod ()
 

Private Member Functions

void applyMigration (std::shared_ptr< migration::Base > m)
 

Private Attributes

std::shared_ptr< DbStoragedb_
 
std::vector< std::shared_ptr< migration::Base > > migrations_
 
logger::Logger logger_
 

Constructor & Destructor Documentation

◆ Manager()

taraxa::storage::migration::Manager::Manager ( std::shared_ptr< DbStorage db)
explicit

Member Function Documentation

◆ applyAll()

void taraxa::storage::migration::Manager::applyAll ( )

◆ applyMigration()

void taraxa::storage::migration::Manager::applyMigration ( std::shared_ptr< migration::Base m)
private

◆ applyReceiptsByPeriod()

void taraxa::storage::migration::Manager::applyReceiptsByPeriod ( )

◆ registerMigration()

template<typename T >
void taraxa::storage::migration::Manager::registerMigration ( )
inline

Member Data Documentation

◆ db_

std::shared_ptr<DbStorage> taraxa::storage::migration::Manager::db_
private

◆ logger_

logger::Logger taraxa::storage::migration::Manager::logger_
private

◆ migrations_

std::vector<std::shared_ptr<migration::Base> > taraxa::storage::migration::Manager::migrations_
private

The documentation for this class was generated from the following files: