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"
14namespace litesql {
17using namespace std;
18class UpdateQuery {
19 string table;
20 string _where;
21 Split fields;
22 Split values;
23public:
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
A base class for expression in WHERE - clause.
Definition expr.hpp:19
Definition field.hpp:24
splits and joins strings.
Definition split.hpp:15
Contains Expr-class hierarchy and operator overloadings for them.
includes string.hpp and split.hpp

SourceForge.net Logo