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

Function isReadOnlyQuery

src/Interpreters/executeQuery.cpp:2014–2022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2012
2013
2014static bool isReadOnlyQuery(const ASTPtr & ast)
2015{
2016 auto kind = ast->getQueryKind();
2017 return kind == IAST::QueryKind::Select
2018 || kind == IAST::QueryKind::Explain
2019 || kind == IAST::QueryKind::Show
2020 || kind == IAST::QueryKind::Describe
2021 || kind == IAST::QueryKind::Exists;
2022}
2023
2024
2025static void executeASTFuzzerQueries(const ASTPtr & ast, const ContextMutablePtr & context, Float64 ast_fuzzer_runs_value, bool any_query)

Callers 1

executeASTFuzzerQueriesFunction · 0.85

Calls 1

getQueryKindMethod · 0.45

Tested by

no test coverage detected