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.

22 lines
667 B

  1. #pragma once
  2. #include "Statement.h"
  3. #include "StatementBuilder.h"
  4. #include <string>
  5. #include <vector>
  6. namespace db {
  7. namespace statements {
  8. namespace builder {
  9. class SelectStatementBuilder : public StatementBuilder {
  10. public:
  11. explicit SelectStatementBuilder() : StatementBuilder() {}
  12. SelectStatementBuilder &columns(const std::string &cols);
  13. SelectStatementBuilder &where(const std::string &where);
  14. SelectStatementBuilder &inner_join(const std::string &table, const std::string &on);
  15. SelectStatementBuilder &from_table(const std::string &table);
  16. SelectStatementBuilder &close();
  17. };
  18. }
  19. }
  20. }