hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
db_transaction.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_DB_TRANSACTION_HPP
7 #define IROHA_DB_TRANSACTION_HPP
8 
9 #include <string>
10 
11 namespace iroha::ametsuchi {
12 
14  public:
15  virtual void begin() = 0;
16  virtual void savepoint(std::string const &name) = 0;
17  virtual void commit() = 0;
18  virtual void rollback() = 0;
19  virtual void rollbackToSavepoint(std::string const &name) = 0;
20  virtual void releaseSavepoint(std::string const &name) = 0;
21  virtual void prepare(std::string const &name) = 0;
22  virtual void commitPrepared(std::string const &name) = 0;
23  };
24 
25 } // namespace iroha::ametsuchi
26 
27 #endif // IROHA_DB_TRANSACTION_HPP
Definition: block_query.hpp:17
virtual void rollbackToSavepoint(std::string const &name)=0
virtual void prepare(std::string const &name)=0
virtual void savepoint(std::string const &name)=0
virtual void releaseSavepoint(std::string const &name)=0
virtual void commitPrepared(std::string const &name)=0
Definition: db_transaction.hpp:13