16 #include <resultset.h> 24 Expression(
const std::string& column,
const std::string& op,
int value) :
25 m_column(column), m_op(op), m_type(INT_COLUMN)
29 Expression(
const std::string& column,
const std::string& op,
double value) :
30 m_column(column), m_op(op), m_type(NUMBER_COLUMN)
34 const std::string toJSON()
const 36 std::ostringstream json;
38 json <<
"{ \"column\" : \"" << m_column <<
"\", ";
39 json <<
"\"operator\" : \"" << m_op <<
"\", ";
40 json <<
"\"value\" : ";
59 const std::string m_column;
60 const std::string m_op;
71 const std::string toJSON()
const 73 std::ostringstream json;
76 for (std::vector<Expression>::const_iterator it = this->cbegin();
77 it != this->cend(); ++it)
81 if (it + 1 != this->cend())
Class that defines data to be inserted or updated in a column within the table.
Definition: expression.h:22
Definition: expression.h:68