|
@ -10,6 +10,8 @@ namespace db { |
|
|
class StatementBuilder; |
|
|
class StatementBuilder; |
|
|
class InsertStatementBuilder; |
|
|
class InsertStatementBuilder; |
|
|
class SelectStatementBuilder; |
|
|
class SelectStatementBuilder; |
|
|
|
|
|
class UpdateStatementBuilder; |
|
|
|
|
|
class DeleteStatementBuilder; |
|
|
|
|
|
|
|
|
class Statement { |
|
|
class Statement { |
|
|
public: |
|
|
public: |
|
@ -17,10 +19,14 @@ namespace db { |
|
|
|
|
|
|
|
|
friend class InsertStatementBuilder; |
|
|
friend class InsertStatementBuilder; |
|
|
friend class SelectStatementBuilder; |
|
|
friend class SelectStatementBuilder; |
|
|
|
|
|
friend class UpdateStatementBuilder; |
|
|
|
|
|
friend class DeleteStatementBuilder; |
|
|
friend std::ostream &operator<<(std::ostream &os, const Statement &s); |
|
|
friend std::ostream &operator<<(std::ostream &os, const Statement &s); |
|
|
|
|
|
|
|
|
static InsertStatementBuilder insert(); |
|
|
static InsertStatementBuilder insert(); |
|
|
static SelectStatementBuilder select(); |
|
|
static SelectStatementBuilder select(); |
|
|
|
|
|
static UpdateStatementBuilder update(); |
|
|
|
|
|
static DeleteStatementBuilder remove(); |
|
|
|
|
|
|
|
|
std::string str() const; |
|
|
std::string str() const; |
|
|
private: |
|
|
private: |
|
|