mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
85d783c247
* Remove config_common.h * Refactor libcpuid contrib * Remove support for libcpuinfo * Define USE_CPUID in Arcadia * Refactor Poco libraries
31 lines
686 B
C++
31 lines
686 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Poco/Logger.h>
|
|
#include <Poco/Net/HTTPRequestHandler.h>
|
|
|
|
#if USE_ODBC
|
|
|
|
/// This handler establishes connection to database, and retrieve quote style identifier
|
|
namespace DB
|
|
{
|
|
|
|
class IdentifierQuoteHandler : public Poco::Net::HTTPRequestHandler
|
|
{
|
|
public:
|
|
IdentifierQuoteHandler(size_t keep_alive_timeout_, Context &)
|
|
: log(&Poco::Logger::get("IdentifierQuoteHandler")), keep_alive_timeout(keep_alive_timeout_)
|
|
{
|
|
}
|
|
|
|
void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
|
|
|
|
private:
|
|
Poco::Logger * log;
|
|
size_t keep_alive_timeout;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|