MCPcopy Index your code
hub / github.com/totaljs/framework / updDocumentRelation

Function updDocumentRelation

graphdb.js:937–946  ·  view source on GitHub ↗
(self, index, relationindex, callback)

Source from the content-addressed store, hash-verified

935}
936
937function updDocumentRelation(self, index, relationindex, callback) {
938
939 if (index === relationindex)
940 throw new Error('FET');
941
942 var offset = offsetDocument(self, index);
943 var buf = U.createBufferSize(4);
944 buf.writeUInt32LE(relationindex);
945 Fs.write(self.fd, buf, 0, buf.length, offset + 7, callback);
946}
947
948function updDocumentParent(self, index, parentindex, callback) {
949 var offset = offsetDocument(self, index);

Callers 3

addRelationFunction · 0.85
addRelationDocumentFunction · 0.85
pushRelationDocumentFunction · 0.85

Calls 1

offsetDocumentFunction · 0.85

Tested by

no test coverage detected