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

Method checkConflict

src/processor/operator/persistent/insert_executor.cpp:140–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool NodeInsertExecutor::checkConflict(const Transaction* transaction) const {
141 if (info.conflictAction == ConflictAction::ON_CONFLICT_DO_NOTHING) {
142 auto offset =
143 tableInfo.table->validateUniquenessConstraint(transaction, tableInfo.columnDataVectors);
144 if (offset != INVALID_OFFSET) {
145 // Conflict. Skip insertion.
146 info.updateNodeID({offset, tableInfo.table->getTableID()});
147 return true;
148 }
149 }
150 return false;
151}
152
153void RelInsertInfo::init(const ResultSet& resultSet) {
154 srcNodeIDVector = resultSet.getValueVector(srcNodeIDPos).get();

Callers

nothing calls this directly

Calls 2

updateNodeIDMethod · 0.80

Tested by

no test coverage detected