mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +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
32 lines
658 B
C++
32 lines
658 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context.h>
|
|
#include <Server/HTTP/HTTPRequestHandler.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
|
|
{
|
|
public:
|
|
IdentifierQuoteHandler(size_t keep_alive_timeout_, ContextPtr)
|
|
: 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
|