2017-11-27 21:31:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-11-28 22:15:06 +00:00
|
|
|
#include <Dictionaries/Embedded/GeoDictionariesLoader.h>
|
2017-11-28 11:00:07 +00:00
|
|
|
#include <Interpreters/ExternalLoaderConfigRepository.h>
|
2019-03-29 20:31:06 +00:00
|
|
|
#include <Interpreters/IRuntimeComponentsFactory.h>
|
|
|
|
#include <Interpreters/UsersManager.h>
|
2017-11-27 21:31:13 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-11-28 00:52:56 +00:00
|
|
|
/** Default implementation of runtime components factory
|
|
|
|
* used by native server application.
|
|
|
|
*/
|
2017-11-27 21:31:13 +00:00
|
|
|
class RuntimeComponentsFactory : public IRuntimeComponentsFactory
|
|
|
|
{
|
|
|
|
public:
|
2019-03-29 20:31:06 +00:00
|
|
|
std::unique_ptr<IUsersManager> createUsersManager() override
|
2017-11-27 21:31:13 +00:00
|
|
|
{
|
2019-03-29 20:31:06 +00:00
|
|
|
return std::make_unique<UsersManager>();
|
2017-11-27 21:31:13 +00:00
|
|
|
}
|
2017-11-28 22:15:06 +00:00
|
|
|
|
|
|
|
std::unique_ptr<IGeoDictionariesLoader> createGeoDictionariesLoader() override
|
|
|
|
{
|
|
|
|
return std::make_unique<GeoDictionariesLoader>();
|
|
|
|
}
|
2017-12-01 16:25:27 +00:00
|
|
|
|
2017-11-28 11:00:07 +00:00
|
|
|
std::unique_ptr<IExternalLoaderConfigRepository> createExternalDictionariesConfigRepository() override
|
|
|
|
{
|
2017-11-29 12:41:42 +00:00
|
|
|
return std::make_unique<ExternalLoaderConfigRepository>();
|
2017-11-28 11:00:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::unique_ptr<IExternalLoaderConfigRepository> createExternalModelsConfigRepository() override
|
|
|
|
{
|
|
|
|
return std::make_unique<ExternalLoaderConfigRepository>();
|
|
|
|
}
|
2017-11-27 21:31:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|