ClickHouse/dbms/src/Interpreters/ExternalLoaderConfigRepository.h

26 lines
752 B
C++
Raw Normal View History

#pragma once
#include <Interpreters/IExternalLoaderConfigRepository.h>
namespace DB
{
/** Default implementation of config repository used by native server application.
* Represents files in local filesystem.
*/
class ExternalLoaderConfigRepository : public IExternalLoaderConfigRepository
{
public:
Files list(
2017-11-29 12:48:28 +00:00
const Poco::Util::AbstractConfiguration & config,
const std::string & path_key) const override;
bool exists(const std::string & config_file) const override;
Poco::Timestamp getLastModificationTime(const std::string & config_file) const override;
Poco::AutoPtr<Poco::Util::AbstractConfiguration> load(const std::string & config_file, const std::string & preprocessed_dir = "") const override;
};
}