8 #ifndef litesql_selectquery_hpp
9 #define litesql_selectquery_hpp
23 std::vector<std::string> _results;
24 std::vector<std::string> _sources;
26 std::vector<std::string> _groupBy;
28 std::vector<std::string> _orderBy;
30 SelectQuery() : _distinct(
false), _limit(0), _offset(0), _where(
"True") {}
36 SelectQuery & source(
const std::string& s,
const std::string& alias=
"");
42 SelectQuery & orderBy(
const std::string& ob,
bool ascending=
true);
43 operator std::string()
const;
44 std::string asString()
const {
return this->
operator std::string(); }
A base class for expression in WHERE - clause.
Definition: expr.hpp:18
a class that helps creating SELECT-SQL statements.
Definition: selectquery.hpp:20
Contains Expr-class hierarchy and operator overloadings for them.