2021-03-05 09:38:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Interpreters/Context.h>
|
2021-03-12 21:12:34 +00:00
|
|
|
#include <bridge/IBridge.h>
|
2021-03-07 13:55:40 +00:00
|
|
|
#include "HandlerFactory.h"
|
2021-03-05 09:38:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2021-03-07 13:55:40 +00:00
|
|
|
class LibraryBridge : public IBridge
|
2021-03-05 09:38:00 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
protected:
|
2021-04-10 23:33:54 +00:00
|
|
|
std::string bridgeName() const override
|
2021-03-07 13:55:40 +00:00
|
|
|
{
|
|
|
|
return "LibraryBridge";
|
|
|
|
}
|
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
HandlerFactoryPtr getHandlerFactoryPtr(ContextPtr context) const override
|
2021-03-07 13:55:40 +00:00
|
|
|
{
|
|
|
|
return std::make_shared<LibraryBridgeHandlerFactory>("LibraryRequestHandlerFactory-factory", keep_alive_timeout, context);
|
|
|
|
}
|
2021-03-05 09:38:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|