MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / simpleUpsert

Function simpleUpsert

src/ExtMsg.actor.cpp:1451–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1449 return ref(new ExtReplaceUpdate(replaceWith));
1450}
1451Reference<IInsertOp> simpleUpsert(bson::BSONObj const& selector, bson::BSONObj const& update) {
1452 return ref(new ExtSimpleUpsert(selector, update));
1453}
1454Reference<IInsertOp> operatorUpsert(bson::BSONObj const& selector, bson::BSONObj const& update) {
1455 return ref(new ExtOperatorUpsert(selector, update));
1456}

Calls 1

refFunction · 0.85

Tested by

no test coverage detected