29 lines
869 B
C++
29 lines
869 B
C++
#ifndef QUERY_CREATE_INTERMEDIATE_HPP
|
|
#define QUERY_CREATE_INTERMEDIATE_HPP
|
|
|
|
#include "matador/query/intermediates/query_intermediate.hpp"
|
|
|
|
#include "matador/query/intermediates/executable_query.hpp"
|
|
|
|
#include "matador/object/attribute_definition_generator.hpp"
|
|
|
|
namespace matador::query {
|
|
|
|
class query_create_intermediate : public query_intermediate
|
|
{
|
|
public:
|
|
query_create_intermediate();
|
|
|
|
executable_query table(const sql::table &table, std::initializer_list<object::attribute_definition> columns);
|
|
executable_query table(const sql::table &table, const std::vector<object::attribute_definition> &columns);
|
|
template<class Type>
|
|
executable_query table(const sql::table &table, const object::repository &schema) {
|
|
return this->table(table, object::attribute_definition_generator::generate<Type>(schema));
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif //QUERY_CREATE_INTERMEDIATE_HPP
|