mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
23 lines
521 B
C++
23 lines
521 B
C++
#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.
|
|
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;
|
|
|
|
protected:
|
|
ParserWhiteSpaceOrComments ws;
|
|
};
|
|
|
|
}
|