mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 00:42:29 +00:00
34 lines
747 B
C++
34 lines
747 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Server/HTTP/HTTPRequestHandler.h>
|
|
#include <Common/config.h>
|
|
#include <Poco/Logger.h>
|
|
|
|
#if USE_ODBC
|
|
|
|
/// This handler establishes connection to database, and retrieve quote style identifier
|
|
namespace DB
|
|
{
|
|
|
|
class IdentifierQuoteHandler : public HTTPRequestHandler, WithContext
|
|
{
|
|
public:
|
|
IdentifierQuoteHandler(size_t keep_alive_timeout_, ContextPtr context_)
|
|
: WithContext(context_)
|
|
, log(&Poco::Logger::get("IdentifierQuoteHandler"))
|
|
, keep_alive_timeout(keep_alive_timeout_)
|
|
{
|
|
}
|
|
|
|
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
|
|
|
|
private:
|
|
Poco::Logger * log;
|
|
size_t keep_alive_timeout;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|