30 lines
739 B
C++
30 lines
739 B
C++
#ifndef QUERY_DELETE_FROM_INTERMEDIATE_HPP
|
|
#define QUERY_DELETE_FROM_INTERMEDIATE_HPP
|
|
|
|
#include "matador/query/intermediates/executable_query.hpp"
|
|
|
|
#include "matador/query/basic_condition.hpp"
|
|
|
|
#include "matador/query/intermediates/query_execute_where_intermediate.hpp"
|
|
|
|
namespace matador::query {
|
|
|
|
class query_delete_from_intermediate : public executable_query
|
|
{
|
|
public:
|
|
using executable_query::executable_query;
|
|
|
|
template<class Condition>
|
|
query_execute_where_intermediate where(const Condition &cond)
|
|
{
|
|
return where_clause(std::make_unique<Condition>(std::move(cond)));
|
|
}
|
|
|
|
private:
|
|
query_execute_where_intermediate where_clause(std::unique_ptr<basic_condition> &&cond);
|
|
};
|
|
|
|
}
|
|
|
|
#endif //QUERY_DELETE_FROM_INTERMEDIATE_HPP
|