ClickHouse/dbms/include/DB/Parsers/ParserQueryWithOutput.h

23 lines
521 B
C++
Raw Normal View History

2015-10-21 14:57:10 +00:00
#pragma once
#include <DB/Parsers/IParserBase.h>
#include <DB/Parsers/CommonParsers.h>
#include <DB/Parsers/ASTQueryWithOutput.h>
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
{
protected:
const char * getName() const override { return "Query with output"; }
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) override;
2015-10-21 14:57:10 +00:00
protected:
ParserWhiteSpaceOrComments ws;
};
}