mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
22 lines
551 B
C++
22 lines
551 B
C++
#ifndef MYSQL_QUERY_BUILDER_H
|
|
#define MYSQL_QUERY_BUILDER_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "core/query_builder.h"
|
|
|
|
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);
|
|
void finalize();
|
|
|
|
MysqlQueryBuilder();
|
|
~MysqlQueryBuilder();
|
|
};
|
|
|
|
#endif |