ClickHouse/src/Interpreters/ExternalLoaderDictionaryStorageConfigRepository.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
797 B
C++
Raw Normal View History

2019-10-15 14:09:57 +00:00
#pragma once
#include <Interpreters/IExternalLoaderConfigRepository.h>
#include <Databases/IDatabase.h>
namespace DB
{
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
std::set<std::string> getAllLoadablesDefinitionNames() override;
bool exists(const std::string & loadable_definition_name) override;
2019-10-15 14:09:57 +00:00
Poco::Timestamp getUpdateTime(const std::string & loadable_definition_name) override;
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-15 14:09:57 +00:00
}