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

Function getDBCollectionPair

src/ExtMsg.actor.cpp:67–74  ·  view source on GitHub ↗

ns -> database.collection

Source from the content-addressed store, hash-verified

65
66// ns -> database.collection
67Namespace getDBCollectionPair(const char* ns, std::pair<std::string, std::string> errMsg) {
68 const auto dotPtr = strchr(ns, '.');
69 if (dotPtr == nullptr) {
70 TraceEvent(SevWarn, "WireBadCollectionName").detail(errMsg.first, errMsg.second).suppressFor(1.0);
71 throw wire_protocol_mismatch();
72 }
73 return std::make_pair(std::string(ns, dotPtr - ns), std::string(dotPtr + 1));
74}
75
76/**
77 * query := { $bool_op : [ query* ], * (a predicate)

Callers 6

ExtMsgQueryMethod · 0.85
ExtMsgInsertMethod · 0.85
ExtMsgUpdateMethod · 0.85
ExtMsgGetMoreMethod · 0.85
ExtMsgDeleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected