TARAXA
storage.hpp File Reference
#include <rocksdb/db.h>
#include <rocksdb/options.h>
#include <rocksdb/slice.h>
#include <rocksdb/write_batch.h>
#include <filesystem>
#include <functional>
#include <regex>
#include "common/types.hpp"
#include "dag/dag_block.hpp"
#include "logger/logger.hpp"
#include "pbft/pbft_block.hpp"
#include "pbft/period_data.hpp"
#include "pillar_chain/pillar_block.hpp"
#include "storage/uint_comparator.hpp"
#include "transaction/transaction.hpp"
#include "vote/pillar_vote.hpp"
#include "vote_manager/verified_votes.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  taraxa::DbException
 
class  taraxa::DbStorage
 
class  taraxa::DbStorage::Column
 
class  taraxa::DbStorage::Columns
 

Namespaces

 taraxa
 
 taraxa::pillar_chain
 
 taraxa::final_chain
 

Macros

#define COLUMN(__name__)   static inline auto const __name__ = all_.emplace_back(#__name__, all_.size())
 
#define COLUMN_W_COMP(__name__, ...)    static inline auto const __name__ = all_.emplace_back(#__name__, all_.size(), __VA_ARGS__)
 

Typedefs

using taraxa::Batch = rocksdb::WriteBatch
 
using taraxa::Slice = rocksdb::Slice
 
using taraxa::OnEntry = std::function< void(Slice const &, Slice const &)>
 

Enumerations

enum  taraxa::StatusDbField : uint8_t {
  taraxa::ExecutedBlkCount = 0 , taraxa::ExecutedTrxCount , taraxa::TrxCount , taraxa::DagBlkCount ,
  taraxa::DagEdgeCount , taraxa::DbMajorVersion , taraxa::DbMinorVersion
}
 
enum class  taraxa::PbftMgrField : uint8_t { taraxa::Round = 0 , taraxa::Step }
 
enum  taraxa::PbftMgrStatus : uint8_t { taraxa::ExecutedBlock = 0 , taraxa::ExecutedInRound , taraxa::NextVotedSoftValue , taraxa::NextVotedNullBlockHash }
 
enum class  taraxa::DBMetaKeys { taraxa::LAST_NUMBER = 1 }
 

Macro Definition Documentation

◆ COLUMN

#define COLUMN (   __name__)    static inline auto const __name__ = all_.emplace_back(#__name__, all_.size())

◆ COLUMN_W_COMP

#define COLUMN_W_COMP (   __name__,
  ... 
)     static inline auto const __name__ = all_.emplace_back(#__name__, all_.size(), __VA_ARGS__)