Mercurial > hg > orthanc
comparison Core/SQLite/Statement.h @ 724:96a2d2da0fee
more sqlite tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Feb 2014 16:55:10 +0100 |
parents | 2d0a347e8cfc |
children | 9b9026560a5f |
comparison
equal
deleted
inserted
replaced
723:0da078f3affc | 724:96a2d2da0fee |
---|---|
87 struct sqlite3_stmt* GetStatement() const | 87 struct sqlite3_stmt* GetStatement() const |
88 { | 88 { |
89 return reference_.GetWrappedObject(); | 89 return reference_.GetWrappedObject(); |
90 } | 90 } |
91 | 91 |
92 // Resets the statement to its initial condition. This includes any current | |
93 // result row, and also the bound variables if the |clear_bound_vars| is true. | |
94 void Reset(bool clear_bound_vars = true); | |
95 | |
96 public: | 92 public: |
97 Statement(Connection& database, | 93 Statement(Connection& database, |
98 const std::string& sql); | 94 const std::string& sql); |
99 | 95 |
100 Statement(Connection& database, | 96 Statement(Connection& database, |
164 // vector. Danger! ColumnBlob may return NULL if there is no data! | 160 // vector. Danger! ColumnBlob may return NULL if there is no data! |
165 int ColumnByteLength(int col) const; | 161 int ColumnByteLength(int col) const; |
166 const void* ColumnBlob(int col) const; | 162 const void* ColumnBlob(int col) const; |
167 bool ColumnBlobAsString(int col, std::string* blob); | 163 bool ColumnBlobAsString(int col, std::string* blob); |
168 //bool ColumnBlobAsString16(int col, string16* val) const; | 164 //bool ColumnBlobAsString16(int col, string16* val) const; |
169 bool ColumnBlobAsVector(int col, std::vector<char>* val) const; | 165 //bool ColumnBlobAsVector(int col, std::vector<char>* val) const; |
170 bool ColumnBlobAsVector(int col, std::vector<unsigned char>* val) const; | 166 //bool ColumnBlobAsVector(int col, std::vector<unsigned char>* val) const; |
171 | 167 |
168 // Resets the statement to its initial condition. This includes any current | |
169 // result row, and also the bound variables if the |clear_bound_vars| is true. | |
170 void Reset(bool clear_bound_vars = true); | |
172 }; | 171 }; |
173 } | 172 } |
174 } | 173 } |