ClickHouse/dbms/src/Parsers/ParserQueryWithOutput.h

28 lines
592 B
C++
Raw Normal View History

2015-10-21 14:57:10 +00:00
#pragma once
#include <Parsers/IParserBase.h>
#include <Parsers/CommonParsers.h>
#include <Parsers/ASTQueryWithOutput.h>
2015-10-21 14:57:10 +00:00
namespace DB
{
/// Parse queries supporting [INTO OUTFILE 'file_name'] [FORMAT format_name] suffix.
2015-10-21 14:57:10 +00:00
class ParserQueryWithOutput : public IParserBase
{
public:
ParserQueryWithOutput(bool enable_explain_ = false)
: enable_explain(enable_explain_)
{}
2015-10-21 14:57:10 +00:00
protected:
const char * getName() const override { return "Query with output"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
private:
bool enable_explain;
2015-10-21 14:57:10 +00:00
};
}