You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "UpdateStatementBuilder.h"
namespace db { namespace statements { namespace builder { UpdateStatementBuilder &UpdateStatementBuilder::table(const std::string &table) { m_statement.body += "UPDATE " + table; return *this; }
UpdateStatementBuilder &UpdateStatementBuilder::set(const std::string &set) { m_statement.body += " SET " + set + " "; return *this; }
UpdateStatementBuilder &UpdateStatementBuilder::where(const std::string &where) { m_statement.body += " WHERE " + where; return *this; }
UpdateStatementBuilder &UpdateStatementBuilder::close() { m_statement.body += ";\n"; return *this; } } } }
|