comparison Framework/PostgreSQL/PostgreSQLTransaction.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 fbb52129158a
comparison
equal deleted inserted replaced
213:c2e4a909de0e 214:ab96698c73a3
34 class PostgreSQLTransaction : public ITransaction 34 class PostgreSQLTransaction : public ITransaction
35 { 35 {
36 private: 36 private:
37 PostgreSQLDatabase& database_; 37 PostgreSQLDatabase& database_;
38 bool isOpen_; 38 bool isOpen_;
39 bool readOnly_;
40 39
41 public: 40 public:
42 explicit PostgreSQLTransaction(PostgreSQLDatabase& database); 41 explicit PostgreSQLTransaction(PostgreSQLDatabase& database);
43 42
44 ~PostgreSQLTransaction(); 43 ~PostgreSQLTransaction();
46 virtual bool IsImplicit() const ORTHANC_OVERRIDE 45 virtual bool IsImplicit() const ORTHANC_OVERRIDE
47 { 46 {
48 return false; 47 return false;
49 } 48 }
50 49
51 virtual bool IsReadOnly() const ORTHANC_OVERRIDE
52 {
53 return readOnly_;
54 }
55
56 void Begin(); 50 void Begin();
57 51
58 virtual void Rollback() ORTHANC_OVERRIDE; 52 virtual void Rollback() ORTHANC_OVERRIDE;
59 53
60 virtual void Commit() ORTHANC_OVERRIDE; 54 virtual void Commit() ORTHANC_OVERRIDE;