TARAXA
taraxa::storage::migration::Base Class Referenceabstract

#include <migration_base.hpp>

Public Member Functions

 Base (std::shared_ptr< DbStorage > db)
 
virtual ~Base ()=default
 
virtual std::string id ()=0
 
virtual uint32_t dbVersion ()=0
 
bool isApplied ()
 
void apply (logger::Logger &log)
 

Protected Member Functions

virtual void migrate (logger::Logger &log)=0
 
void setApplied ()
 

Protected Attributes

std::shared_ptr< DbStoragedb_
 
Batch batch_
 

Constructor & Destructor Documentation

◆ Base()

taraxa::storage::migration::Base::Base ( std::shared_ptr< DbStorage db)
inline

◆ ~Base()

virtual taraxa::storage::migration::Base::~Base ( )
virtualdefault

Member Function Documentation

◆ apply()

void taraxa::storage::migration::Base::apply ( logger::Logger log)
inline

◆ dbVersion()

virtual uint32_t taraxa::storage::migration::Base::dbVersion ( )
pure virtual

◆ id()

virtual std::string taraxa::storage::migration::Base::id ( )
pure virtual

◆ isApplied()

bool taraxa::storage::migration::Base::isApplied ( )
inline

◆ migrate()

virtual void taraxa::storage::migration::Base::migrate ( logger::Logger log)
protectedpure virtual

◆ setApplied()

void taraxa::storage::migration::Base::setApplied ( )
inlineprotected

Member Data Documentation

◆ batch_

Batch taraxa::storage::migration::Base::batch_
protected

◆ db_

std::shared_ptr<DbStorage> taraxa::storage::migration::Base::db_
protected

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