CodeCommitsIssuesPull requestsActionsInsightsSecurity
4364bff3bc805ef630b8cd0bc0c8e55b27cba032

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

programs/odbc-bridge/IdentifierQuoteHandler.h

30lines · modecode

1#pragma once
2
3#include <Interpreters/Context.h>
4#include <Poco/Logger.h>
5#include <Poco/Net/HTTPRequestHandler.h>
6
7#if USE_ODBC
8
9/// This handler establishes connection to database, and retrieve quote style identifier
10namespace DB
11{
12
13class IdentifierQuoteHandler : public Poco::Net::HTTPRequestHandler
14{
15public:
16 IdentifierQuoteHandler(size_t keep_alive_timeout_, Context &)
17 : log(&Poco::Logger::get("IdentifierQuoteHandler")), keep_alive_timeout(keep_alive_timeout_)
18 {
19 }
20
21 void handleRequest(Poco::Net::HTTPServerRequest & request, Poco::Net::HTTPServerResponse & response) override;
22
23private:
24 Poco::Logger * log;
25 size_t keep_alive_timeout;
26};
27
28}
29
30#endif