mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
495c6e03aa
* Replace all Context references with std::weak_ptr * Fix shared context captured by value * Fix build * Fix Context with named sessions * Fix copy context * Fix gcc build * Merge with master and fix build * Fix gcc-9 build
27 lines
501 B
C++
27 lines
501 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:
|
|
std::string bridgeName() const override
|
|
{
|
|
return "ODBCBridge";
|
|
}
|
|
|
|
HandlerFactoryPtr getHandlerFactoryPtr(ContextPtr context) const override
|
|
{
|
|
return std::make_shared<ODBCBridgeHandlerFactory>("ODBCRequestHandlerFactory-factory", keep_alive_timeout, context);
|
|
}
|
|
};
|
|
}
|