mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
28 lines
740 B
C++
28 lines
740 B
C++
#pragma once
|
|
#include <Interpreters/Context.h>
|
|
#include <Poco/Logger.h>
|
|
#include <Poco/Net/HTTPRequestHandler.h>
|
|
#include <Common/config.h>
|
|
|
|
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC
|
|
/** This handler establish 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
|