35 lines
817 B
C++
35 lines
817 B
C++
#ifndef QUERY_SELECT_INTERMEDIATE_HPP
|
|
#define QUERY_SELECT_INTERMEDIATE_HPP
|
|
|
|
#include "matador/query/intermediates/query_intermediate.hpp"
|
|
#include "matador/query/intermediates/query_from_intermediate.hpp"
|
|
|
|
#include "matador/query/table_column.hpp"
|
|
|
|
#include <vector>
|
|
|
|
namespace matador::query {
|
|
|
|
class query_from_intermediate;
|
|
|
|
class query_select_intermediate : public query_intermediate
|
|
{
|
|
public:
|
|
explicit query_select_intermediate(const std::vector<table_column>& columns);
|
|
|
|
fetchable_query nextval(const std::string& sequence_name);
|
|
|
|
template<typename... Tables>
|
|
query_from_intermediate from(const Tables&... tables) {
|
|
std::vector<table> v { tables... };
|
|
return from(v);
|
|
}
|
|
|
|
private:
|
|
query_from_intermediate from(const std::vector<table>& tables);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //QUERY_SELECT_INTERMEDIATE_HPP
|