MCPcopy Create free account
hub / github.com/ByConity/ByConity / applySettingsFromQuery

Method applySettingsFromQuery

src/Interpreters/InterpreterSetQuery.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void InterpreterSetQuery::applySettingsFromQuery(const ASTPtr & ast, ContextMutablePtr setting_scontext)
37{
38 auto changes = extractSettingsFromQuery(ast, setting_scontext);
39 auto new_settings = std::make_shared<ASTSetQuery>();
40 new_settings->changes = std::move(changes);
41 InterpreterSetQuery(new_settings, setting_scontext).executeForCurrentContext();
42}
43
44static SettingsChanges extractSettingsFromSetQuery(const ASTPtr & ast)
45{

Callers

nothing calls this directly

Calls 2

InterpreterSetQueryClass · 0.85

Tested by

no test coverage detected