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
|
|
|
|
{
|
|
|
|
|
2017-01-11 19:05:46 +00:00
|
|
|
/// Parse queries supporting [INTO OUTFILE 'file_name'] [FORMAT format_name] suffix.
|
2015-10-21 14:57:10 +00:00
|
|
|
class ParserQueryWithOutput : public IParserBase
|
|
|
|
{
|
|
|
|
protected:
|
2017-01-11 19:05:46 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|