#include "storage.hpp"
Public Member Functions | |
virtual std::shared_ptr< WsvQuery > | getWsvQuery () const =0 |
virtual std::shared_ptr< BlockQuery > | getBlockQuery () const =0 |
virtual bool | insertBlock (const shared_model::interface::Block &block)=0 |
virtual bool | insertBlocks (const std::vector< std::shared_ptr< shared_model::interface::Block >> &blocks)=0 |
virtual rxcpp::observable< std::shared_ptr< shared_model::interface::Block > > | on_commit ()=0 |
virtual void | reset ()=0 |
virtual void | dropStorage ()=0 |
virtual void | freeConnections ()=0 |
virtual | ~Storage ()=default |
![]() | |
virtual expected::Result< std::unique_ptr< TemporaryWsv >, std::string > | createTemporaryWsv ()=0 |
virtual void | prepareBlock (std::unique_ptr< TemporaryWsv > wsv)=0 |
virtual | ~TemporaryFactory ()=default |
![]() | |
virtual expected::Result< std::unique_ptr< MutableStorage >, std::string > | createMutableStorage ()=0 |
virtual boost::optional< std::unique_ptr< LedgerState > > | commit (std::unique_ptr< MutableStorage > mutableStorage)=0 |
virtual boost::optional< std::unique_ptr< LedgerState > > | commitPrepared (const shared_model::interface::Block &block)=0 |
virtual | ~MutableFactory ()=default |
![]() | |
virtual boost::optional< std::shared_ptr< PeerQuery > > | createPeerQuery () const =0 |
virtual | ~PeerQueryFactory ()=default |
![]() | |
virtual boost::optional< std::shared_ptr< BlockQuery > > | createBlockQuery () const =0 |
virtual | ~BlockQueryFactory ()=default |
![]() | |
virtual boost::optional< std::shared_ptr< QueryExecutor > > | createQueryExecutor (std::shared_ptr< PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::QueryResponseFactory > response_factory) const =0 |
virtual | ~QueryExecutorFactory ()=default |
Storage interface, which allows queries on current committed state, and creation of state which can be mutated with blocks and transactions
|
virtualdefault |
|
pure virtual |
Remove all information from ledger Tables and the database will be removed too
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
|
pure virtual |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Raw insertion of blocks without validation
block | - block for insertion |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Raw insertion of blocks without validation
blocks | - collection of blocks for insertion |
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
method called when block is written to the storage
Implemented in iroha::ametsuchi::StorageImpl.
|
pure virtual |
Remove all records from the tables and remove all the blocks
Implemented in iroha::ametsuchi::StorageImpl.