Add StorageID::getShortName()

This commit is contained in:
Azat Khuzhin 2021-10-13 23:47:28 +03:00
parent 8cc45bea7b
commit 3477ab52a7
2 changed files with 4 additions and 2 deletions

View File

@ -110,7 +110,7 @@ StorageID StorageID::fromDictionaryConfig(const Poco::Util::AbstractConfiguratio
return res;
}
String StorageID::getInternalDictionaryName() const
String StorageID::getShortName() const
{
assertNotEmpty();
if (hasUUID())

View File

@ -91,7 +91,9 @@ struct StorageID
/// If dictionary has UUID, then use it as dictionary name in ExternalLoader to allow dictionary renaming.
/// ExternalDictnariesLoader::resolveDictionaryName(...) should be used to access such dictionaries by name.
String getInternalDictionaryName() const;
String getInternalDictionaryName() const { return getShortName(); }
/// Get short, but unique, name.
String getShortName() const;
private:
StorageID() = default;