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.
 
 
 
 

21 lines
577 B

#include "DeleteStatementBuilder.h"
namespace db {
namespace statements {
namespace builder {
DeleteStatementBuilder &DeleteStatementBuilder::table(const std::string &table) {
m_statement.body = "DELETE FROM " + table;
return *this;
}
DeleteStatementBuilder &DeleteStatementBuilder::where(const std::string &where) {
m_statement.body += " WHERE " + where;
return *this;
}
DeleteStatementBuilder &DeleteStatementBuilder::close() {
m_statement.body += ";\n";
return *this;
}
}
}
}