mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
26 lines
709 B
C++
26 lines
709 B
C++
#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(
|
|
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 override;
|
|
};
|
|
|
|
}
|