ClickHouse/programs/odbc-bridge/ColumnInfoHandler.h

36 lines
698 B
C++
Raw Normal View History

#pragma once
2022-01-18 06:49:10 +00:00
#include <Common/config.h>
#if USE_ODBC
#include <Interpreters/Context_fwd.h>
2021-03-22 11:40:29 +00:00
#include <Interpreters/Context.h>
#include <Server/HTTP/HTTPRequestHandler.h>
#include <Poco/Logger.h>
namespace DB
{
class ODBCColumnsInfoHandler : public HTTPRequestHandler, WithContext
{
public:
ODBCColumnsInfoHandler(size_t keep_alive_timeout_, ContextPtr context_)
: WithContext(context_)
, log(&Poco::Logger::get("ODBCColumnsInfoHandler"))
2021-04-06 18:59:34 +00:00
, keep_alive_timeout(keep_alive_timeout_)
{
}
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
private:
Poco::Logger * log;
size_t keep_alive_timeout;
};
}
#endif