#include "postgres_wsv_command.hpp"
|
| | PostgresWsvCommand (soci::session &sql) |
| |
| WsvCommandResult | insertRole (const shared_model::interface::types::RoleIdType &role_name) override |
| |
| WsvCommandResult | insertAccountRole (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override |
| |
| WsvCommandResult | deleteAccountRole (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override |
| |
| WsvCommandResult | insertRolePermissions (const shared_model::interface::types::RoleIdType &role_id, const shared_model::interface::RolePermissionSet &permissions) override |
| |
| WsvCommandResult | insertAccount (const shared_model::interface::Account &account) override |
| |
| WsvCommandResult | updateAccount (const shared_model::interface::Account &account) override |
| |
| WsvCommandResult | setAccountKV (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &key, const std::string &val) override |
| |
| WsvCommandResult | insertAsset (const shared_model::interface::Asset &asset) override |
| |
| WsvCommandResult | upsertAccountAsset (const shared_model::interface::AccountAsset &asset) override |
| |
| WsvCommandResult | insertSignatory (shared_model::interface::types::PublicKeyHexStringView signatory) override |
| |
| WsvCommandResult | insertAccountSignatory (const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::types::PublicKeyHexStringView signatory) override |
| |
| WsvCommandResult | deleteAccountSignatory (const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::types::PublicKeyHexStringView signatory) override |
| |
| WsvCommandResult | deleteSignatory (shared_model::interface::types::PublicKeyHexStringView signatory) override |
| |
| WsvCommandResult | insertPeer (const shared_model::interface::Peer &peer) override |
| |
| WsvCommandResult | deletePeer (const shared_model::interface::Peer &peer) override |
| |
| WsvCommandResult | insertDomain (const shared_model::interface::Domain &domain) override |
| |
| WsvCommandResult | insertAccountGrantablePermission (const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission) override |
| |
| WsvCommandResult | deleteAccountGrantablePermission (const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission) override |
| |
| WsvCommandResult | setTopBlockInfo (const TopBlockInfo &top_block_info) const override |
| |
Public Member Functions inherited from iroha::ametsuchi::WsvCommand |
| virtual | ~WsvCommand ()=default |
| |
◆ PostgresWsvCommand()
| iroha::ametsuchi::PostgresWsvCommand::PostgresWsvCommand |
( |
soci::session & |
sql | ) |
|
|
explicit |
◆ deleteAccountGrantablePermission()
Delete grantable permission
- Parameters
-
| permittee_account_id | to who the grant permission was previously granted |
| account_id | on which account |
| permission | what permission |
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ deleteAccountRole()
Unbind account and role
- Parameters
-
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ deleteAccountSignatory()
Delete account signatory relationship
- Parameters
-
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ deletePeer()
◆ deleteSignatory()
| WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::deleteSignatory |
( |
shared_model::interface::types::PublicKeyHexStringView |
signatory | ) |
|
|
overridevirtual |
◆ insertAccount()
◆ insertAccountGrantablePermission()
Insert grantable permission
- Parameters
-
| permittee_account_id | to who give the grant permission |
| account_id | on which account |
| permission | what permission |
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ insertAccountRole()
Bind account and role
- Parameters
-
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ insertAccountSignatory()
Insert account signatory relationship
- Parameters
-
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ insertAsset()
◆ insertDomain()
◆ insertPeer()
◆ insertRole()
◆ insertRolePermissions()
Bind role and permissions
- Parameters
-
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ insertSignatory()
| WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertSignatory |
( |
shared_model::interface::types::PublicKeyHexStringView |
signatory | ) |
|
|
overridevirtual |
◆ setAccountKV()
- Parameters
-
| account_id | account in which update key value |
| creator_account_id | creator's account who wants to update account_id |
| key | - key to set |
| val | - value of the key/value pair |
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ setTopBlockInfo()
Set the top block info in ledger state.
- Parameters
-
| top_block_info | the info to be written to wsv |
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
◆ updateAccount()
◆ upsertAccountAsset()
Update or insert account asset
- Parameters
-
- Returns
- WsvCommandResult, which will contain error in case of failure
Implements iroha::ametsuchi::WsvCommand.
The documentation for this class was generated from the following files: