2018-08-19 17:09:54 +00:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-28 08:45:15 +00:00
|
|
|
#include "config.h"
|
2022-01-18 06:49:10 +00:00
|
|
|
|
2020-05-08 14:11:19 +00:00
|
|
|
#if USE_ODBC
|
|
|
|
|
2021-04-11 06:13:11 +00:00
|
|
|
#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>
|
2020-05-08 14:11:19 +00:00
|
|
|
|
2021-02-19 12:51:26 +00:00
|
|
|
|
2018-08-19 17:09:54 +00:00
|
|
|
namespace DB
|
|
|
|
{
|
2020-05-08 14:11:19 +00:00
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
class ODBCColumnsInfoHandler : public HTTPRequestHandler, WithContext
|
2018-08-19 17:09:54 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-04-10 23:33:54 +00:00
|
|
|
ODBCColumnsInfoHandler(size_t keep_alive_timeout_, ContextPtr context_)
|
2021-04-11 06:13:11 +00:00
|
|
|
: WithContext(context_)
|
|
|
|
, log(&Poco::Logger::get("ODBCColumnsInfoHandler"))
|
2021-04-06 18:59:34 +00:00
|
|
|
, keep_alive_timeout(keep_alive_timeout_)
|
2018-08-19 17:09:54 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-02-19 12:51:26 +00:00
|
|
|
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
|
2018-08-19 17:09:54 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Poco::Logger * log;
|
|
|
|
size_t keep_alive_timeout;
|
|
|
|
};
|
2020-05-08 14:11:19 +00:00
|
|
|
|
2018-08-19 17:09:54 +00:00
|
|
|
}
|
2020-05-08 14:11:19 +00:00
|
|
|
|
2018-08-19 17:09:54 +00:00
|
|
|
#endif
|