ClickHouse/dbms/include/DB/Interpreters/InterpreterFactory.h
2017-04-01 11:35:09 +03:00

25 lines
397 B
C++

#pragma once
#include <DB/Core/QueryProcessingStage.h>
#include <DB/Interpreters/IInterpreter.h>
namespace DB
{
class Context;
class IAST;
using ASTPtr = std::shared_ptr<IAST>;
class InterpreterFactory
{
public:
static std::unique_ptr<IInterpreter> get(
ASTPtr & query,
Context & context,
QueryProcessingStage::Enum stage = QueryProcessingStage::Complete);
};
}