ClickHouse/programs/odbc-bridge/ColumnInfoHandler.h

32 lines
584 B
C++
Raw Normal View History

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