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.
31 lines
671 B
31 lines
671 B
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <sstream>
|
|
|
|
namespace db {
|
|
namespace statements {
|
|
namespace builder {
|
|
class StatementBuilder;
|
|
class InsertStatementBuilder;
|
|
class SelectStatementBuilder;
|
|
|
|
class Statement {
|
|
public:
|
|
Statement() = default;
|
|
|
|
friend class InsertStatementBuilder;
|
|
friend class SelectStatementBuilder;
|
|
friend std::ostream &operator<<(std::ostream &os, const Statement &s);
|
|
|
|
static InsertStatementBuilder insert();
|
|
static SelectStatementBuilder select();
|
|
|
|
std::string str() const;
|
|
private:
|
|
std::string body;
|
|
};
|
|
}
|
|
}
|
|
}
|