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

Method addUsersConfigStorage

src/Access/AccessControl.cpp:335–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void AccessControl::addUsersConfigStorage(const String & storage_name_, const Poco::Util::AbstractConfiguration & users_config_, bool allow_backup_)
336{
337 auto new_storage = std::make_shared<UsersConfigAccessStorage>(storage_name_, *this, allow_backup_);
338 new_storage->setConfig(users_config_);
339 addStorage(new_storage);
340 LOG_DEBUG(getLogger(), "Added {} access storage '{}', path: {}",
341 String(new_storage->getStorageType()), new_storage->getStorageName(), new_storage->getPath());
342}
343
344void AccessControl::addUsersConfigStorage(
345 const String & storage_name_,

Callers

nothing calls this directly

Calls 7

getLoggerFunction · 0.50
StringClass · 0.50
setConfigMethod · 0.45
getStorageTypeMethod · 0.45
getPathMethod · 0.45
isPathEqualMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected