mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
27 lines
489 B
C++
27 lines
489 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Bridge/IBridge.h>
|
|
#include "HandlerFactory.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class LibraryBridge : public IBridge
|
|
{
|
|
|
|
protected:
|
|
std::string bridgeName() const override
|
|
{
|
|
return "LibraryBridge";
|
|
}
|
|
|
|
HandlerFactoryPtr getHandlerFactoryPtr(ContextPtr context) const override
|
|
{
|
|
return std::make_shared<LibraryBridgeHandlerFactory>("LibraryRequestHandlerFactory-factory", keep_alive_timeout, context);
|
|
}
|
|
};
|
|
|
|
}
|