mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
39 lines
763 B
C++
39 lines
763 B
C++
#include "mysql_query_builder.h"
|
|
|
|
|
|
QueryBuilder *MysqlQueryBuilder::select(const std::string ¶ms) {
|
|
query_result += "SELECT " + params;
|
|
|
|
return this;
|
|
}
|
|
|
|
QueryBuilder *MysqlQueryBuilder::where(const std::string ¶ms) {
|
|
query_result += " WHERE " + params;
|
|
|
|
return this;
|
|
}
|
|
|
|
QueryBuilder *MysqlQueryBuilder::from(const std::string ¶ms) {
|
|
query_result += " FROM " + params;
|
|
|
|
return this;
|
|
}
|
|
|
|
QueryBuilder *MysqlQueryBuilder::limit(const int min, const int max) {
|
|
return this;
|
|
}
|
|
|
|
QueryBuilder *MysqlQueryBuilder::insert(const std::string &table_name, const std::string ¶ms_str) {
|
|
return this;
|
|
}
|
|
|
|
void MysqlQueryBuilder::finalize() {
|
|
query_result += ";";
|
|
}
|
|
|
|
MysqlQueryBuilder::MysqlQueryBuilder() {
|
|
|
|
}
|
|
MysqlQueryBuilder::~MysqlQueryBuilder() {
|
|
|
|
} |