29 lines
954 B
C++
29 lines
954 B
C++
#ifndef QUERY_INSERT_INTERMEDIATE_HPP
|
|
#define QUERY_INSERT_INTERMEDIATE_HPP
|
|
|
|
#include "matador/query/intermediates/query_intermediate.hpp"
|
|
#include "matador/query/intermediates/query_into_intermediate.hpp"
|
|
|
|
#include "matador/query/generator.hpp"
|
|
|
|
namespace matador::query {
|
|
|
|
class query_insert_intermediate : public query_intermediate
|
|
{
|
|
public:
|
|
query_insert_intermediate();
|
|
|
|
template<class Type>
|
|
query_into_intermediate into(const sql::table &table, const object::repository &schema) {
|
|
return into(table, generator::columns<Type>(schema));
|
|
}
|
|
query_into_intermediate into(const sql::table &table, std::initializer_list<sql::column> columns);
|
|
query_into_intermediate into(const sql::table &table, std::vector<sql::column> &&columns);
|
|
query_into_intermediate into(const sql::table &table, const std::vector<std::string> &column_names);
|
|
query_into_intermediate into(const sql::table &table);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //QUERY_INSERT_INTERMEDIATE_HPP
|