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

#include "postgres_command_executor.hpp"

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

Classes

class  CommandStatements
 
class  StatementExecutor
 

Public Member Functions

 PostgresCommandExecutor (std::unique_ptr< soci::session > sql, std::shared_ptr< shared_model::interface::PermissionToString > perm_converter, std::shared_ptr< PostgresSpecificQueryExecutor > specific_query_executor, std::optional< std::reference_wrapper< const VmCaller >> vm_caller)
 
 ~PostgresCommandExecutor ()
 
CommandResult execute (const shared_model::interface::Command &cmd, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation) override
 
soci::session & getSession ()
 
CommandResult operator() (const shared_model::interface::AddAssetQuantity &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::AddPeer &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::AddSignatory &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CallEngine &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::AppendRole &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CompareAndSetAccountDetail &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateAccount &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateAsset &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateDomain &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateRole &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::DetachRole &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::GrantPermission &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::RemovePeer &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::RemoveSignatory &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::RevokePermission &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SetAccountDetail &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SetQuorum &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SubtractAssetQuantity &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::TransferAsset &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &tx_hash, shared_model::interface::types::CommandIndexType cmd_index, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SetSettingValue &command, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &, shared_model::interface::types::CommandIndexType, bool do_validation)
 
- Public Member Functions inherited from iroha::ametsuchi::CommandExecutor
virtual ~CommandExecutor ()=default
 

Constructor & Destructor Documentation

◆ PostgresCommandExecutor()

iroha::ametsuchi::PostgresCommandExecutor::PostgresCommandExecutor ( std::unique_ptr< soci::session >  sql,
std::shared_ptr< shared_model::interface::PermissionToString perm_converter,
std::shared_ptr< PostgresSpecificQueryExecutor specific_query_executor,
std::optional< std::reference_wrapper< const VmCaller >>  vm_caller 
)
Here is the call graph for this function:

◆ ~PostgresCommandExecutor()

iroha::ametsuchi::PostgresCommandExecutor::~PostgresCommandExecutor ( )
default
Here is the caller graph for this function:

Member Function Documentation

◆ execute()

CommandResult iroha::ametsuchi::PostgresCommandExecutor::execute ( const shared_model::interface::Command cmd,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
overridevirtual

Implements iroha::ametsuchi::CommandExecutor.

Here is the call graph for this function:

◆ getSession()

soci::session & iroha::ametsuchi::PostgresCommandExecutor::getSession ( )

◆ operator()() [1/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::AddAssetQuantity command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [2/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::AddPeer command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [3/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::AddSignatory command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [4/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::CallEngine command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [5/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::AppendRole command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [6/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::CompareAndSetAccountDetail command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [7/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::CreateAccount command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [8/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::CreateAsset command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [9/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::CreateDomain command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [10/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::CreateRole command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [11/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::DetachRole command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [12/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::GrantPermission command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [13/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::RemovePeer command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [14/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::RemoveSignatory command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [15/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::RevokePermission command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [16/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::SetAccountDetail command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [17/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::SetQuorum command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [18/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::SubtractAssetQuantity command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [19/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::TransferAsset command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  tx_hash,
shared_model::interface::types::CommandIndexType  cmd_index,
bool  do_validation 
)
Here is the call graph for this function:

◆ operator()() [20/20]

CommandResult iroha::ametsuchi::PostgresCommandExecutor::operator() ( const shared_model::interface::SetSettingValue command,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string &  ,
shared_model::interface::types::CommandIndexType  ,
bool  do_validation 
)
Here is the call graph for this function:

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