mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
16 lines
563 B
C
16 lines
563 B
C
|
#pragma once
|
|||
|
|
|||
|
#include <DB/Parsers/IParser.h>
|
|||
|
|
|||
|
|
|||
|
namespace DB
|
|||
|
{
|
|||
|
|
|||
|
/// Распарсить запрос или записать сообщение об ошибке в out_error_message.
|
|||
|
ASTPtr tryParseQuery(IParser & parser, IParser::Pos begin, IParser::Pos end, std::string & out_error_message, const std::string & description);
|
|||
|
|
|||
|
/// Распарсить запрос или кинуть исключение с сообщением об ошибке.
|
|||
|
ASTPtr parseQuery(IParser & parser, IParser::Pos begin, IParser::Pos end, const std::string & description);
|
|||
|
|
|||
|
}
|