2020-12-01 21:48:13 +01:00
|
|
|
#ifndef MYSQL_QUERY_BUILDER_H
|
|
|
|
#define MYSQL_QUERY_BUILDER_H
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2021-05-15 13:54:28 +02:00
|
|
|
#include "core/database/query_builder.h"
|
2020-12-01 22:23:28 +01:00
|
|
|
|
2020-12-01 21:48:13 +01:00
|
|
|
class MysqlQueryBuilder : public QueryBuilder {
|
|
|
|
public:
|
|
|
|
QueryBuilder *select(const std::string ¶ms);
|
|
|
|
QueryBuilder *where(const std::string ¶ms);
|
|
|
|
QueryBuilder *from(const std::string ¶ms);
|
|
|
|
QueryBuilder *limit(const int min, const int max);
|
|
|
|
QueryBuilder *insert(const std::string &table_name, const std::string ¶ms_str);
|
2020-12-01 22:23:28 +01:00
|
|
|
void finalize();
|
|
|
|
|
2020-12-01 21:48:13 +01:00
|
|
|
MysqlQueryBuilder();
|
|
|
|
~MysqlQueryBuilder();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|