ClickHouse/programs/library-bridge/LibraryBridge.h
2021-03-07 13:55:40 +00:00

27 lines
501 B
C++

#pragma once
#include <Interpreters/Context.h>
#include <Common/Bridge/IBridge.h>
#include "HandlerFactory.h"
namespace DB
{
class LibraryBridge : public IBridge
{
protected:
const std::string bridgeName() const override
{
return "LibraryBridge";
}
HandlerFactoryPtr getHandlerFactoryPtr(Context & context) const override
{
return std::make_shared<LibraryBridgeHandlerFactory>("LibraryRequestHandlerFactory-factory", keep_alive_timeout, context);
}
};
}