mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
27 lines
506 B
C++
27 lines
506 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Poco/Logger.h>
|
|
#include <bridge/IBridge.h>
|
|
#include "HandlerFactory.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ODBCBridge : public IBridge
|
|
{
|
|
|
|
protected:
|
|
const std::string bridgeName() const override
|
|
{
|
|
return "ODBCBridge";
|
|
}
|
|
|
|
HandlerFactoryPtr getHandlerFactoryPtr(Context & context) const override
|
|
{
|
|
return std::make_shared<ODBCBridgeHandlerFactory>("ODBCRequestHandlerFactory-factory", keep_alive_timeout, context);
|
|
}
|
|
};
|
|
}
|