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

Method setUserScriptsPath

src/Interpreters/Context.cpp:1859–1873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1857}
1858
1859void Context::setUserScriptsPath(const String & path)
1860{
1861 {
1862 std::lock_guard lock(shared->mutex);
1863 shared->user_scripts_path = path;
1864 }
1865
1866 auto * wasm_module_manager = initWasmModuleManager();
1867 if (wasm_module_manager)
1868 {
1869 auto & function_storage = getUserDefinedSQLObjectsStorage();
1870 function_storage.loadObjects();
1871 UserDefinedSQLFunctionFactory::instance().loadFunctions(function_storage, *wasm_module_manager);
1872 }
1873}
1874
1875void Context::addOrUpdateWarningMessage(WarningType warning, const PreformattedMessage & message) const
1876{

Callers 2

mainMethod · 0.80
tryInitPathMethod · 0.80

Calls 2

loadObjectsMethod · 0.45
loadFunctionsMethod · 0.45

Tested by

no test coverage detected