MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getPrimaryKey

Method getPrimaryKey

src/binder/expression/node_expression.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6NodeExpression::~NodeExpression() = default;
7
8std::shared_ptr<Expression> NodeExpression::getPrimaryKey(common::table_id_t tableID) const {
9 for (auto& property : propertyExprs) {
10 if (property->isPrimaryKey(tableID)) {
11 return property;
12 }
13 }
14 UNREACHABLE_CODE;
15}
16
17} // namespace binder
18} // namespace lbug

Callers 5

getNodeDeleteExecutorMethod · 0.80
visitDeleteMethod · 0.80
tryRewriteDegreeTopKMethod · 0.80
visitDeleteMethod · 0.80

Calls 1

isPrimaryKeyMethod · 0.80

Tested by

no test coverage detected