mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
22 lines
577 B
C++
22 lines
577 B
C++
#pragma once
|
|
|
|
#include <Parsers/IParserBase.h>
|
|
#include <Parsers/CommonParsers.h>
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Parse queries supporting [INTO OUTFILE 'file_name'] [FORMAT format_name] [SETTINGS key1 = value1, key2 = value2, ...] suffix.
|
|
class ParserQueryWithOutput : public IParserBase
|
|
{
|
|
protected:
|
|
const char * end;
|
|
const char * getName() const override { return "Query with output"; }
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
|
public:
|
|
ParserQueryWithOutput(const char * end_) : end(end_) {}
|
|
};
|
|
|
|
}
|