mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
78fc36ca49
This makes the target location consistent with other auto-generated files like config_formats.h, config_core.h, and config_functions.h and simplifies the build of clickhouse_common.
36 lines
691 B
C++
36 lines
691 B
C++
#pragma once
|
|
|
|
#include "config.h"
|
|
|
|
#if USE_ODBC
|
|
|
|
#include <Interpreters/Context_fwd.h>
|
|
#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"))
|
|
, keep_alive_timeout(keep_alive_timeout_)
|
|
{
|
|
}
|
|
|
|
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response) override;
|
|
|
|
private:
|
|
Poco::Logger * log;
|
|
size_t keep_alive_timeout;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|