2011-10-30 11:30:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Parsers/IParserBase.h>
|
2011-10-30 11:30:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class ParserQuery : public IParserBase
|
|
|
|
{
|
2017-07-10 03:41:02 +00:00
|
|
|
private:
|
|
|
|
const char * end;
|
2022-04-04 08:09:22 +00:00
|
|
|
bool allow_settings_after_format_in_insert;
|
2017-07-12 01:49:20 +00:00
|
|
|
|
|
|
|
const char * getName() const override { return "Query"; }
|
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
2018-10-09 14:32:11 +00:00
|
|
|
|
2017-07-12 01:49:20 +00:00
|
|
|
public:
|
2022-04-04 08:09:22 +00:00
|
|
|
explicit ParserQuery(const char * end_, bool allow_settings_after_format_in_insert_ = false)
|
|
|
|
: end(end_)
|
|
|
|
, allow_settings_after_format_in_insert(allow_settings_after_format_in_insert_)
|
|
|
|
{}
|
2011-10-30 11:30:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|