LiteSQL  0.3.10
updatequery.hpp
Go to the documentation of this file.
1 /* LiteSQL
2  *
3  * The list of contributors at http://litesql.sf.net/
4  *
5  * See LICENSE for copyright information. */
6 
7 #ifndef _litesql_updatequery_hpp
8 #define _litesql_updatequery_hpp
9 
10 #include "litesql/utils.hpp"
11 #include "litesql/expr.hpp"
14 namespace litesql {
17 using namespace std;
18 class UpdateQuery {
19  string table;
20  string _where;
21  Split fields;
22  Split values;
23 public:
24  UpdateQuery(const string& t) : table(t), _where("True") {}
25  UpdateQuery& where(const Expr& e);
26  UpdateQuery& set(const FieldType& f, const string& value);
27  operator std::string() const;
28  std::string asString() const { return this->operator std::string(); }
29 };
30 }
31 
32 #endif
Definition: backend.hpp:14
Definition: updatequery.hpp:18
includes string.hpp and split.hpp
A base class for expression in WHERE - clause.
Definition: expr.hpp:19
Contains Expr-class hierarchy and operator overloadings for them.
splits and joins strings.
Definition: split.hpp:15
Definition: field.hpp:24

SourceForge.net Logo