lbug 0.16.1

An in-process property graph database management system built for query speed and scalability
Documentation
#pragma once

#include "expression.h"

namespace lbug {
namespace binder {

class LBUG_API VariableExpression final : public Expression {
    static constexpr common::ExpressionType expressionType_ = common::ExpressionType::VARIABLE;

public:
    VariableExpression(common::LogicalType dataType, std::string uniqueName,
        std::string variableName)
        : Expression{expressionType_, std::move(dataType), std::move(uniqueName)},
          variableName{std::move(variableName)} {}

    std::string getVariableName() const { return variableName; }

    void cast(const common::LogicalType& type) override;

    std::string toStringInternal() const override { return variableName; }

private:
    std::string variableName;
};

} // namespace binder
} // namespace lbug