MCPcopy Create free account
hub / github.com/apple/foundationdb / subDoc

Method subDoc

fdbclient/include/fdbclient/JSONDoc.h:194–199  ·  view source on GitHub ↗

Ensures that an Object exists at path and returns a JSONDoc that writes to it.

Source from the content-addressed store, hash-verified

192
193 // Ensures that an Object exists at path and returns a JSONDoc that writes to it.
194 JSONDoc subDoc(std::string path, bool split = true) {
195 json_spirit::mValue& v = create(path, split);
196 if (v.type() != json_spirit::obj_type)
197 v = json_spirit::mObject();
198 return JSONDoc(v.get_obj());
199 }
200
201 // Apply a merge operation to two values. Works for int, double, and string
202 template <typename T>

Callers 4

parseMethod · 0.80
readKeyspaceSnapshotMethod · 0.80

Calls 2

JSONDocClass · 0.85
typeMethod · 0.45

Tested by

no test coverage detected