1#include <Parsers/ParserQuery.h>
2#include <Parsers/ParserQueryWithOutput.h>
3#include <Parsers/ParserCreateQuery.h>
4#include <Parsers/ParserInsertQuery.h>
5#include <Parsers/ParserDropQuery.h>
6#include <Parsers/ParserRenameQuery.h>
7#include <Parsers/ParserOptimizeQuery.h>
8#include <Parsers/ParserUseQuery.h>
9#include <Parsers/ParserSetQuery.h>
10#include <Parsers/ParserAlterQuery.h>
11#include <Parsers/ParserSystemQuery.h>
12#include <Parsers/ParserCreateQuotaQuery.h>
13#include <Parsers/ParserCreateRowPolicyQuery.h>
14#include <Parsers/ParserDropAccessEntityQuery.h>
15
16
17namespace DB
18{
19
20
21bool ParserQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
22{
23 ParserQueryWithOutput query_with_output_p(enable_explain);
24 ParserInsertQuery insert_p(end);
25 ParserUseQuery use_p;
26 ParserSetQuery set_p;
27 ParserSystemQuery system_p;
28 ParserCreateQuotaQuery create_quota_p;
29 ParserCreateRowPolicyQuery create_row_policy_p;
30 ParserDropAccessEntityQuery drop_access_entity_p;
31
32 bool res = query_with_output_p.parse(pos, node, expected)
33 || insert_p.parse(pos, node, expected)
34 || use_p.parse(pos, node, expected)
35 || set_p.parse(pos, node, expected)
36 || system_p.parse(pos, node, expected)
37 || create_quota_p.parse(pos, node, expected)
38 || create_row_policy_p.parse(pos, node, expected)
39 || drop_access_entity_p.parse(pos, node, expected);
40
41 return res;
42}
43
44}
45