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

Function parseQueryKind

src/Client/ClientApplicationBase.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static ClientInfo::QueryKind parseQueryKind(const String & query_kind)
39{
40 if (query_kind == "initial_query")
41 return ClientInfo::QueryKind::INITIAL_QUERY;
42 if (query_kind == "secondary_query")
43 return ClientInfo::QueryKind::SECONDARY_QUERY;
44 if (query_kind == "no_query")
45 return ClientInfo::QueryKind::NO_QUERY;
46 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Unknown query kind {}", query_kind);
47}
48
49/// This signal handler is set only for SIGINT and SIGQUIT.
50void interruptSignalHandler(int signum)

Callers 1

initMethod · 0.85

Calls 1

ExceptionClass · 0.70

Tested by

no test coverage detected