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
687 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 InsertStatementBuilder : public StatementBuilder {
  10. public:
  11. explicit InsertStatementBuilder() : StatementBuilder() {}
  12. InsertStatementBuilder &table(const std::string &table);
  13. InsertStatementBuilder &columns(const std::string &cols);
  14. InsertStatementBuilder &values();
  15. InsertStatementBuilder &row(const std::string &values);
  16. InsertStatementBuilder &row(const std::vector<std::string> &values);
  17. InsertStatementBuilder &close();
  18. };
  19. }
  20. }
  21. }