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.
 
 
 
 

37 lines
880 B

#include "Statement.h"
#include "StatementBuilder.h"
#include "InsertStatementBuilder.h"
#include "SelectStatementBuilder.h"
#include "UpdateStatementBuilder.h"
#include "DeleteStatementBuilder.h"
namespace db {
namespace statements {
namespace builder {
InsertStatementBuilder Statement::insert() {
return InsertStatementBuilder{};
}
SelectStatementBuilder Statement::select() {
return SelectStatementBuilder{};
}
UpdateStatementBuilder Statement::update() {
return UpdateStatementBuilder{};
}
DeleteStatementBuilder Statement::remove() {
return DeleteStatementBuilder{};
}
std::string Statement::str() const {
return body + "\n";
}
std::ostream &operator<<(std::ostream &os, const Statement &s) {
return os << s.body << std::endl;
}
}
}
}