mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
31 lines
797 B
C++
31 lines
797 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;
|
|
|
|
Poco::Timestamp getUpdateTime(const std::string & loadable_definition_name) override;
|
|
|
|
LoadablesConfigurationPtr load(const std::string & loadable_definition_name) override;
|
|
|
|
private:
|
|
const StorageDictionary & dictionary_storage;
|
|
};
|
|
|
|
}
|