ClickHouse/programs/odbc-bridge/IdentifierQuoteHandler.h

28 lines
643 B
C++
Raw Normal View History

2018-09-27 15:23:42 +00:00
#pragma once
2018-09-27 15:23:42 +00:00
#include <Interpreters/Context.h>
#include <Server/HTTP/HTTPRequestHandler.h>
#include "config.h"
2018-09-27 15:23:42 +00:00
#include <Poco/Logger.h>
#if USE_ODBC
/// This handler establishes connection to database, and retrieve quote style identifier
2018-09-27 15:23:42 +00:00
namespace DB
{
class IdentifierQuoteHandler : public HTTPRequestHandler, WithContext
2018-09-27 15:23:42 +00:00
{
public:
2024-03-26 22:31:40 +00:00
explicit IdentifierQuoteHandler(ContextPtr context_) : WithContext(context_), log(getLogger("IdentifierQuoteHandler")) { }
2018-09-27 15:23:42 +00:00
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) override;
2018-09-27 15:23:42 +00:00
private:
2024-01-23 17:04:50 +00:00
LoggerPtr log;
2018-09-27 15:23:42 +00:00
};
2018-09-27 15:23:42 +00:00
}
2018-09-27 15:23:42 +00:00
#endif