Mercurial > hg > orthanc-databases
comparison Framework/SQLite/SQLiteStatement.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 | 16aac0287485 |
comparison
equal
deleted
inserted
replaced
213:c2e4a909de0e | 214:ab96698c73a3 |
---|---|
38 { | 38 { |
39 class SQLiteStatement : public IPrecompiledStatement | 39 class SQLiteStatement : public IPrecompiledStatement |
40 { | 40 { |
41 private: | 41 private: |
42 std::unique_ptr<Orthanc::SQLite::Statement> statement_; | 42 std::unique_ptr<Orthanc::SQLite::Statement> statement_; |
43 bool readOnly_; | |
44 GenericFormatter formatter_; | 43 GenericFormatter formatter_; |
45 | 44 |
46 void BindParameters(const Dictionary& parameters); | 45 void BindParameters(const Dictionary& parameters); |
47 | 46 |
48 public: | 47 public: |
49 SQLiteStatement(SQLiteDatabase& database, | 48 SQLiteStatement(SQLiteDatabase& database, |
50 const Query& query); | 49 const Query& query); |
51 | |
52 virtual bool IsReadOnly() const ORTHANC_OVERRIDE | |
53 { | |
54 return readOnly_; | |
55 } | |
56 | 50 |
57 Orthanc::SQLite::Statement& GetObject(); | 51 Orthanc::SQLite::Statement& GetObject(); |
58 | 52 |
59 IResult* Execute(ITransaction& transaction, | 53 IResult* Execute(ITransaction& transaction, |
60 const Dictionary& parameters); | 54 const Dictionary& parameters); |