2017-11-28 11:00:07 +00:00
|
|
|
#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;
|
2017-11-28 11:00:07 +00:00
|
|
|
|
|
|
|
bool exists(const std::string & config_file) const override;
|
|
|
|
|
|
|
|
Poco::Timestamp getLastModificationTime(const std::string & config_file) const override;
|
|
|
|
|
2018-11-27 16:11:46 +00:00
|
|
|
Poco::AutoPtr<Poco::Util::AbstractConfiguration> load(const std::string & config_file, const std::string & preprocessed_dir = "") const override;
|
2017-11-28 11:00:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|