ClickHouse/src/Parsers/makeASTForLogicalFunction.h
2020-07-06 09:05:48 +03:00

17 lines
411 B
C++

#pragma once
#include <Parsers/IAST_fwd.h>
namespace DB
{
/// 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);
}