mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
4fe1c9a78f
to allow ExternalLoader::reloadConfig() work for generated configurations too.
29 lines
706 B
C++
29 lines
706 B
C++
#pragma once
|
|
|
|
#include <Interpreters/IExternalLoaderConfigRepository.h>
|
|
#include <Databases/IDatabase.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class StorageDictionary;
|
|
|
|
class ExternalLoaderDictionaryStorageConfigRepository : public IExternalLoaderConfigRepository
|
|
{
|
|
public:
|
|
explicit ExternalLoaderDictionaryStorageConfigRepository(const StorageDictionary & dictionary_storage_);
|
|
|
|
std::string getName() const override;
|
|
|
|
std::set<std::string> getAllLoadablesDefinitionNames() override;
|
|
|
|
bool exists(const std::string & loadable_definition_name) override;
|
|
|
|
LoadablesConfigurationPtr load(const std::string & loadable_definition_name) override;
|
|
|
|
private:
|
|
const StorageDictionary & dictionary_storage;
|
|
};
|
|
|
|
}
|