Packages

An Elixir DuckDB library

Current section

Files

Jump to
exduckdb c_src duckdb src parser base_expression.cpp
Raw

c_src/duckdb/src/parser/base_expression.cpp

#include "duckdb/parser/base_expression.hpp"
#include "duckdb/common/printer.hpp"
namespace duckdb {
void BaseExpression::Print() {
Printer::Print(ToString());
}
string BaseExpression::GetName() const {
return !alias.empty() ? alias : ToString();
}
bool BaseExpression::Equals(const BaseExpression *other) const {
if (!other) {
return false;
}
if (this->expression_class != other->expression_class || this->type != other->type) {
return false;
}
return true;
}
} // namespace duckdb