2019-10-15 14:09:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Interpreters/IExternalLoaderConfigRepository.h>
|
|
|
|
#include <Databases/IDatabase.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2019-10-21 14:59:35 +00:00
|
|
|
|
2021-04-21 13:45:13 +00:00
|
|
|
class StorageDictionary;
|
|
|
|
|
|
|
|
class ExternalLoaderDictionaryStorageConfigRepository : public IExternalLoaderConfigRepository
|
2019-10-15 14:09:57 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-04-22 07:53:44 +00:00
|
|
|
explicit ExternalLoaderDictionaryStorageConfigRepository(const StorageDictionary & dictionary_storage_);
|
2019-10-15 14:09:57 +00:00
|
|
|
|
2021-04-22 07:53:44 +00:00
|
|
|
std::string getName() const override;
|
2019-10-15 14:09:57 +00:00
|
|
|
|
2019-12-30 23:30:06 +00:00
|
|
|
std::set<std::string> getAllLoadablesDefinitionNames() override;
|
|
|
|
|
|
|
|
bool exists(const std::string & loadable_definition_name) override;
|
2019-10-15 14:09:57 +00:00
|
|
|
|
2019-12-30 23:30:06 +00:00
|
|
|
LoadablesConfigurationPtr load(const std::string & loadable_definition_name) override;
|
2019-10-15 14:09:57 +00:00
|
|
|
|
|
|
|
private:
|
2021-04-22 07:53:44 +00:00
|
|
|
const StorageDictionary & dictionary_storage;
|
2019-10-15 14:09:57 +00:00
|
|
|
};
|
2019-10-21 14:59:35 +00:00
|
|
|
|
2019-10-15 14:09:57 +00:00
|
|
|
}
|