mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#include <Parsers/ParserQuery.h>
|
|
#include <Parsers/ParserQueryWithOutput.h>
|
|
#include <Parsers/ParserCreateQuery.h>
|
|
#include <Parsers/ParserInsertQuery.h>
|
|
#include <Parsers/ParserDropQuery.h>
|
|
#include <Parsers/ParserRenameQuery.h>
|
|
#include <Parsers/ParserOptimizeQuery.h>
|
|
#include <Parsers/ParserUseQuery.h>
|
|
#include <Parsers/ParserSetQuery.h>
|
|
#include <Parsers/ParserAlterQuery.h>
|
|
#include <Parsers/ParserSystemQuery.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
bool ParserQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
|
|
{
|
|
ParserQueryWithOutput query_with_output_p;
|
|
ParserInsertQuery insert_p(end);
|
|
ParserDropQuery drop_p;
|
|
ParserUseQuery use_p;
|
|
ParserSetQuery set_p;
|
|
ParserOptimizeQuery optimize_p;
|
|
ParserSystemQuery system_p;
|
|
|
|
bool res = query_with_output_p.parse(pos, node, expected)
|
|
|| insert_p.parse(pos, node, expected)
|
|
|| use_p.parse(pos, node, expected)
|
|
|| set_p.parse(pos, node, expected)
|
|
|| optimize_p.parse(pos, node, expected)
|
|
|| system_p.parse(pos, node, expected);
|
|
|
|
return res;
|
|
}
|
|
|
|
}
|