Mercurial > hg > orthanc-databases
comparison Framework/Common/DatabaseManager.h @ 18:c7c54993a92e
fix sqlite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Jul 2018 10:40:39 +0200 |
parents | 9774802fd05f |
children | b2ff1cd2907a |
comparison
equal
deleted
inserted
replaced
17:54ea251aed70 | 18:c7c54993a92e |
---|---|
121 class CachedStatement : public boost::noncopyable | 121 class CachedStatement : public boost::noncopyable |
122 { | 122 { |
123 private: | 123 private: |
124 boost::recursive_mutex::scoped_lock lock_; | 124 boost::recursive_mutex::scoped_lock lock_; |
125 DatabaseManager& manager_; | 125 DatabaseManager& manager_; |
126 IDatabase& database_; | |
126 StatementLocation location_; | 127 StatementLocation location_; |
127 ITransaction& transaction_; | 128 ITransaction& transaction_; |
128 IPrecompiledStatement* statement_; | 129 IPrecompiledStatement* statement_; |
129 std::auto_ptr<Query> query_; | 130 std::auto_ptr<Query> query_; |
130 std::auto_ptr<IResult> result_; | 131 std::auto_ptr<IResult> result_; |
139 const char* sql); | 140 const char* sql); |
140 | 141 |
141 CachedStatement(const StatementLocation& location, | 142 CachedStatement(const StatementLocation& location, |
142 Transaction& transaction, | 143 Transaction& transaction, |
143 const char* sql); | 144 const char* sql); |
145 | |
146 IDatabase& GetDatabase() | |
147 { | |
148 return database_; | |
149 } | |
144 | 150 |
145 void SetReadOnly(bool readOnly); | 151 void SetReadOnly(bool readOnly); |
146 | 152 |
147 void SetParameterType(const std::string& parameter, | 153 void SetParameterType(const std::string& parameter, |
148 ValueType type); | 154 ValueType type); |