hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor Class Reference
Collaboration diagram for iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor:
Collaboration graph

Public Member Functions

 StatementExecutor (std::unique_ptr< CommandStatements > &statements, bool enable_validation, std::string command_name, std::shared_ptr< shared_model::interface::PermissionToString > perm_converter)
 
template<typename T , typename = decltype(soci::use(std::declval<T>(), std::string{}))>
void use (const std::string &argument_name, const T &value)
 
void use (const std::string &argument_name, const Role &permission)
 
void use (const std::string &argument_name, const Grantable &permission)
 
void use (const std::string &argument_name, const shared_model::interface::RolePermissionSet &permission_set)
 
void use (const std::string &argument_name, bool value)
 
void addArgumentToString (const std::string &argument_name, const std::string &value)
 
void addArgumentToString (const std::string &argument_name, const boost::optional< std::string > &value)
 
template<typename T >
std::enable_if_t< std::is_arithmetic< T >::value > addArgumentToString (const std::string &argument_name, const T &value)
 
iroha::ametsuchi::CommandResult execute () noexcept
 

Constructor & Destructor Documentation

◆ StatementExecutor()

iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::StatementExecutor ( std::unique_ptr< CommandStatements > &  statements,
bool  enable_validation,
std::string  command_name,
std::shared_ptr< shared_model::interface::PermissionToString perm_converter 
)
inline

Member Function Documentation

◆ addArgumentToString() [1/3]

void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::addArgumentToString ( const std::string &  argument_name,
const std::string &  value 
)
inline

◆ addArgumentToString() [2/3]

void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::addArgumentToString ( const std::string &  argument_name,
const boost::optional< std::string > &  value 
)
inline

◆ addArgumentToString() [3/3]

template<typename T >
std::enable_if_t<std::is_arithmetic<T>::value> iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::addArgumentToString ( const std::string &  argument_name,
const T &  value 
)
inline

◆ execute()

iroha::ametsuchi::CommandResult iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::execute ( )
inlinenoexcept
Here is the caller graph for this function:

◆ use() [1/5]

template<typename T , typename = decltype(soci::use(std::declval<T>(), std::string{}))>
void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::use ( const std::string &  argument_name,
const T &  value 
)
inline
Here is the caller graph for this function:

◆ use() [2/5]

void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::use ( const std::string &  argument_name,
const Role &  permission 
)
inline

◆ use() [3/5]

void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::use ( const std::string &  argument_name,
const Grantable &  permission 
)
inline

◆ use() [4/5]

void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::use ( const std::string &  argument_name,
const shared_model::interface::RolePermissionSet permission_set 
)
inline
Here is the call graph for this function:

◆ use() [5/5]

void iroha::ametsuchi::PostgresCommandExecutor::StatementExecutor::use ( const std::string &  argument_name,
bool  value 
)
inline

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