2020-12-01 21:48:13 +01:00
|
|
|
#ifndef QUERY_BUILDER_H
|
|
|
|
#define QUERY_BUILDER_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class QueryBuilder {
|
|
|
|
public:
|
|
|
|
virtual QueryBuilder *select(const std::string ¶ms);
|
|
|
|
virtual QueryBuilder *where(const std::string ¶ms);
|
|
|
|
virtual QueryBuilder *from(const std::string ¶ms);
|
|
|
|
virtual QueryBuilder *limit(const int min, const int max);
|
|
|
|
virtual QueryBuilder *insert(const std::string &table_name, const std::string ¶ms_str);
|
2020-12-01 22:23:28 +01:00
|
|
|
virtual void finalize();
|
|
|
|
|
2020-12-01 21:48:13 +01:00
|
|
|
QueryBuilder();
|
|
|
|
virtual ~QueryBuilder();
|
|
|
|
|
|
|
|
std::string query_result;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|