29 lines
926 B
C++
29 lines
926 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 query::table &tab, std::initializer_list<object::attribute_definition> columns);
|
|
executable_query table(const query::table &tab, const std::vector<object::attribute_definition> &columns);
|
|
template<class Type>
|
|
executable_query table(const query::table &tab, const object::repository &schema) {
|
|
return this->table(tab, object::attribute_definition_generator::generate<Type>(schema));
|
|
}
|
|
executable_query schema(const std::string &schema_name);
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif //QUERY_CREATE_INTERMEDIATE_HPP
|