lbug 0.16.1

An in-process property graph database management system built for query speed and scalability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "binder/expression/node_expression.h"

namespace lbug {
namespace binder {

NodeExpression::~NodeExpression() = default;

std::shared_ptr<Expression> NodeExpression::getPrimaryKey(common::table_id_t tableID) const {
    for (auto& property : propertyExprs) {
        if (property->isPrimaryKey(tableID)) {
            return property;
        }
    }
    UNREACHABLE_CODE;
}

} // namespace binder
} // namespace lbug