comparison Framework/SQLite/SQLiteTransaction.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 35598014f140
comparison
equal deleted inserted replaced
213:c2e4a909de0e 214:ab96698c73a3
34 { 34 {
35 class SQLiteTransaction : public ITransaction 35 class SQLiteTransaction : public ITransaction
36 { 36 {
37 private: 37 private:
38 Orthanc::SQLite::Transaction transaction_; 38 Orthanc::SQLite::Transaction transaction_;
39 bool readOnly_;
40 39
41 public: 40 public:
42 explicit SQLiteTransaction(SQLiteDatabase& database); 41 explicit SQLiteTransaction(SQLiteDatabase& database);
43 42
44 virtual bool IsImplicit() const ORTHANC_OVERRIDE 43 virtual bool IsImplicit() const ORTHANC_OVERRIDE
45 { 44 {
46 return false; 45 return false;
47 } 46 }
48 47
49 virtual bool IsReadOnly() const ORTHANC_OVERRIDE
50 {
51 return readOnly_;
52 }
53
54 virtual void Rollback() ORTHANC_OVERRIDE 48 virtual void Rollback() ORTHANC_OVERRIDE
55 { 49 {
56 transaction_.Rollback(); 50 transaction_.Rollback();
57 } 51 }
58 52