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.

27 lines
606 B

  1. #include "Statement.h"
  2. #include "StatementBuilder.h"
  3. #include "InsertStatementBuilder.h"
  4. #include "SelectStatementBuilder.h"
  5. namespace db {
  6. namespace statements {
  7. namespace builder {
  8. InsertStatementBuilder Statement::insert() {
  9. return InsertStatementBuilder{};
  10. }
  11. SelectStatementBuilder Statement::select() {
  12. return SelectStatementBuilder{};
  13. }
  14. std::string Statement::str() const {
  15. return body + "\n";
  16. }
  17. std::ostream &operator<<(std::ostream &os, const Statement &s) {
  18. return os << s.body << std::endl;
  19. }
  20. }
  21. }
  22. }