ClickHouse/src/Parsers/ParserQuery.h

26 lines
551 B
C++
Raw Normal View History

2011-10-30 11:30:52 +00:00
#pragma once
#include <Parsers/IParserBase.h>
2011-10-30 11:30:52 +00:00
namespace DB
{
class ParserQuery : public IParserBase
{
private:
const char * end;
bool allow_settings_after_format_in_insert;
const char * getName() const override { return "Query"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
public:
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
};
}