hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PostgresBurrowStorage Class Reference

#include "postgres_burrow_storage.hpp"

Inheritance diagram for iroha::ametsuchi::PostgresBurrowStorage:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::PostgresBurrowStorage:
Collaboration graph

Public Member Functions

 PostgresBurrowStorage (soci::session &sql, std::string const &tx_hash, shared_model::interface::types::CommandIndexType cmd_index)
 
expected::Result< std::optional< std::string >, std::string > getAccount (std::string_view address) override
 
expected::Result< void, std::string > updateAccount (std::string_view address, std::string_view account) override
 
expected::Result< void, std::string > removeAccount (std::string_view address) override
 
expected::Result< std::optional< std::string >, std::string > getStorage (std::string_view address, std::string_view key) override
 
expected::Result< void, std::string > setStorage (std::string_view address, std::string_view key, std::string_view value) override
 
expected::Result< void, std::string > storeLog (std::string_view address, std::string_view data, std::vector< std::string_view > topics) override
 
- Public Member Functions inherited from iroha::ametsuchi::BurrowStorage
virtual ~BurrowStorage ()=default
 

Constructor & Destructor Documentation

◆ PostgresBurrowStorage()

PostgresBurrowStorage::PostgresBurrowStorage ( soci::session &  sql,
std::string const &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index 
)

Member Function Documentation

◆ getAccount()

Result< std::optional< std::string >, std::string > PostgresBurrowStorage::getAccount ( std::string_view  address)
overridevirtual

◆ getStorage()

Result< std::optional< std::string >, std::string > PostgresBurrowStorage::getStorage ( std::string_view  address,
std::string_view  key 
)
overridevirtual

◆ removeAccount()

Result< void, std::string > PostgresBurrowStorage::removeAccount ( std::string_view  address)
overridevirtual

◆ setStorage()

Result< void, std::string > PostgresBurrowStorage::setStorage ( std::string_view  address,
std::string_view  key,
std::string_view  value 
)
overridevirtual

◆ storeLog()

Result< void, std::string > PostgresBurrowStorage::storeLog ( std::string_view  address,
std::string_view  data,
std::vector< std::string_view >  topics 
)
overridevirtual

◆ updateAccount()

Result< void, std::string > PostgresBurrowStorage::updateAccount ( std::string_view  address,
std::string_view  account 
)
overridevirtual

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