#pragma once #include #include #include #include #include namespace DB { /** Repository with configurations of user-defined objects (dictionaries, models). * Used by ExternalLoader. */ class IExternalLoaderConfigRepository { public: using Files = std::set; virtual Files list(const Poco::Util::AbstractConfiguration & config, const std::string & path_key) const = 0; virtual bool exists(const std::string & config_file) const = 0; virtual Poco::Timestamp getLastModificationTime(const std::string & config_file) const = 0; virtual Poco::AutoPtr load(const std::string & config_file) const = 0; virtual ~IExternalLoaderConfigRepository() {} }; }