ClickHouse/programs/odbc-bridge/ODBCBridge.h

27 lines
501 B
C++
Raw Normal View History

#pragma once
#include <Interpreters/Context.h>
#include <Poco/Logger.h>
2022-04-27 15:05:45 +00:00
#include <Bridge/IBridge.h>
2021-03-07 13:55:40 +00:00
#include "HandlerFactory.h"
namespace DB
{
2021-03-07 13:55:40 +00:00
class ODBCBridge : public IBridge
{
protected:
std::string bridgeName() const override
2021-03-07 13:55:40 +00:00
{
return "ODBCBridge";
}
HandlerFactoryPtr getHandlerFactoryPtr(ContextPtr context) const override
2021-03-07 13:55:40 +00:00
{
return std::make_shared<ODBCBridgeHandlerFactory>("ODBCRequestHandlerFactory-factory", keep_alive_timeout, context);
}
};
}