mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
20 lines
501 B
C++
20 lines
501 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/// Makes an AST calculating NOT argument.
|
|
ASTPtr makeASTForLogicalNot(ASTPtr argument);
|
|
|
|
/// Makes an AST calculating argument1 AND argument2 AND ... AND argumentN.
|
|
ASTPtr makeASTForLogicalAnd(ASTs && arguments);
|
|
|
|
/// Makes an AST calculating argument1 OR argument2 OR ... OR argumentN.
|
|
ASTPtr makeASTForLogicalOr(ASTs && arguments);
|
|
|
|
/// Tries to extract a literal bool from AST.
|
|
bool tryGetLiteralBool(const IAST * ast, bool & value);
|
|
}
|