mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
ea73b98fb9
- Rename generic file and identifier names in library-bridge to something more dictionary-specific. This is needed because later on, catboost will be integrated into library-bridge. - Also: Some smaller fixes like typos and un-inlining non-performance critical code. - The logic remains unchanged in this commit.
31 lines
818 B
C++
31 lines
818 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context_fwd.h>
|
|
#include <Server/HTTP/HTTPRequestHandlerFactory.h>
|
|
#include "ColumnInfoHandler.h"
|
|
#include "IdentifierQuoteHandler.h"
|
|
#include "MainHandler.h"
|
|
#include "SchemaAllowedHandler.h"
|
|
#include <Poco/Logger.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/** Factory for '/ping', '/', '/columns_info', '/identifier_quote', '/schema_allowed' handlers.
|
|
* Also stores Session pools for ODBC connections
|
|
*/
|
|
class ODBCBridgeHandlerFactory : public HTTPRequestHandlerFactory, WithContext
|
|
{
|
|
public:
|
|
ODBCBridgeHandlerFactory(const std::string & name_, size_t keep_alive_timeout_, ContextPtr context_);
|
|
|
|
std::unique_ptr<HTTPRequestHandler> createRequestHandler(const HTTPServerRequest & request) override;
|
|
|
|
private:
|
|
Poco::Logger * log;
|
|
std::string name;
|
|
size_t keep_alive_timeout;
|
|
};
|
|
|
|
}
|