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.

23 lines
709 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 &exists();
  13. SelectStatementBuilder &columns(const std::string &cols);
  14. SelectStatementBuilder &where(const std::string &where);
  15. SelectStatementBuilder &inner_join(const std::string &table, const std::string &on);
  16. SelectStatementBuilder &from_table(const std::string &table);
  17. SelectStatementBuilder &close();
  18. };
  19. }
  20. }
  21. }