Mercurial > hg > orthanc-databases
comparison Framework/MySQL/MySQLTransaction.h @ 214:ab96698c73a3
removed useless information about read-only in ITransaction and IPrecompiledStatement
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Mar 2021 13:56:26 +0100 |
parents | 3236894320d6 |
children | ee5858d438dc |
comparison
equal
deleted
inserted
replaced
213:c2e4a909de0e | 214:ab96698c73a3 |
---|---|
32 { | 32 { |
33 class MySQLTransaction : public ITransaction | 33 class MySQLTransaction : public ITransaction |
34 { | 34 { |
35 private: | 35 private: |
36 MySQLDatabase& db_; | 36 MySQLDatabase& db_; |
37 bool readOnly_; | |
38 bool active_; | 37 bool active_; |
39 | 38 |
40 public: | 39 public: |
41 explicit MySQLTransaction(MySQLDatabase& db); | 40 explicit MySQLTransaction(MySQLDatabase& db); |
42 | 41 |
45 virtual bool IsImplicit() const ORTHANC_OVERRIDE | 44 virtual bool IsImplicit() const ORTHANC_OVERRIDE |
46 { | 45 { |
47 return false; | 46 return false; |
48 } | 47 } |
49 | 48 |
50 virtual bool IsReadOnly() const ORTHANC_OVERRIDE | |
51 { | |
52 return readOnly_; | |
53 } | |
54 | |
55 virtual void Rollback() ORTHANC_OVERRIDE; | 49 virtual void Rollback() ORTHANC_OVERRIDE; |
56 | 50 |
57 virtual void Commit() ORTHANC_OVERRIDE; | 51 virtual void Commit() ORTHANC_OVERRIDE; |
58 | 52 |
59 virtual IResult* Execute(IPrecompiledStatement& statement, | 53 virtual IResult* Execute(IPrecompiledStatement& statement, |