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)
 
 ~PostgresCommandExecutor ()
 
CommandResult execute (const shared_model::interface::Command &cmd, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation) override
 
soci::session & getSession ()
 
CommandResult operator() (const shared_model::interface::AddAssetQuantity &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::AddPeer &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::AddSignatory &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::AppendRole &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CompareAndSetAccountDetail &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateAccount &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateAsset &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateDomain &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::CreateRole &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::DetachRole &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::GrantPermission &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::RemovePeer &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::RemoveSignatory &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::RevokePermission &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SetAccountDetail &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SetQuorum &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SubtractAssetQuantity &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::TransferAsset &command, const shared_model::interface::types::AccountIdType &creator_account_id, bool do_validation)
 
CommandResult operator() (const shared_model::interface::SetSettingValue &command, const shared_model::interface::types::AccountIdType &creator_account_id, 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 
)
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,
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/19]

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

◆ operator()() [2/19]

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

◆ operator()() [3/19]

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

◆ operator()() [4/19]

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

◆ operator()() [5/19]

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

◆ operator()() [6/19]

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

◆ operator()() [7/19]

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

◆ operator()() [8/19]

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

◆ operator()() [9/19]

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

◆ operator()() [10/19]

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

◆ operator()() [11/19]

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

◆ operator()() [12/19]

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

◆ operator()() [13/19]

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

◆ operator()() [14/19]

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

◆ operator()() [15/19]

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

◆ operator()() [16/19]

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

◆ operator()() [17/19]

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

◆ operator()() [18/19]

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

◆ operator()() [19/19]

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

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