MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / parseCheckDatabase

Method parseCheckDatabase

src/Parsers/ParserCheckQuery.cpp:75–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool ParserCheckQuery::parseCheckDatabase(Pos & pos, ASTPtr & node, Expected & expected)
76{
77 ParserKeyword s_check_database(Keyword::CHECK_DATABASE);
78
79 if (!s_check_database.ignore(pos, expected))
80 return false;
81
82 auto query = make_intrusive<ASTCheckDatabaseQuery>();
83
84 if (!parseDatabaseAsAST(pos, expected, query->database))
85 return false;
86
87 if (query->database)
88 query->children.push_back(query->database);
89
90 node = query;
91 return true;
92}
93
94}

Callers

nothing calls this directly

Calls 3

parseDatabaseAsASTFunction · 0.85
ignoreMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected