ClickHouse/programs/odbc-bridge/SchemaAllowedHandler.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
659 B
C++
Raw Normal View History

#pragma once
2021-04-06 18:59:34 +00:00
#include <Interpreters/Context.h>
#include <Server/HTTP/HTTPRequestHandler.h>
#include "config.h"
#include <Poco/Logger.h>
#if USE_ODBC
2021-03-22 11:40:29 +00:00
namespace DB
{
class Context;
/// This handler establishes connection to database, and retrieves whether schema is allowed.
class SchemaAllowedHandler : public HTTPRequestHandler, WithContext
{
public:
2024-03-26 22:31:40 +00:00
explicit SchemaAllowedHandler(ContextPtr context_) : WithContext(context_), log(getLogger("SchemaAllowedHandler")) { }
void handleRequest(HTTPServerRequest & request, HTTPServerResponse & response, const ProfileEvents::Event & write_event) override;
private:
2024-01-23 17:04:50 +00:00
LoggerPtr log;
};
}
#endif