query/include/matador/query/query_part.hpp

27 lines
463 B
C++

#ifndef QUERY_QUERY_PART_HPP
#define QUERY_QUERY_PART_HPP
#include "matador/sql/dialect_token.hpp"
namespace matador::query {
class query_part_visitor;
class query_part
{
protected:
explicit query_part(sql::dialect_token token);
public:
virtual ~query_part() = default;
virtual void accept(query_part_visitor &visitor) = 0;
[[nodiscard]] sql::dialect_token token() const;
protected:
sql::dialect_token token_;
};
}
#endif //QUERY_QUERY_PART_HPP