MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / put

Function put

nodedb/src/engine/graph/edge_store/scan.rs:256–261  ·  view source on GitHub ↗
(store: &EdgeStore, clock: &OrdinalClock, src: &str, label: &str, dst: &str, p: &[u8])

Source from the content-addressed store, hash-verified

254 }
255
256 fn put(store: &EdgeStore, clock: &OrdinalClock, src: &str, label: &str, dst: &str, p: &[u8]) {
257 let ord = clock.next_ordinal();
258 store
259 .put_edge_versioned(e(src, label, dst), p, ord, ord, i64::MAX)
260 .unwrap();
261 }
262
263 fn soft_delete(store: &EdgeStore, clock: &OrdinalClock, src: &str, label: &str, dst: &str) {
264 let ord = clock.next_ordinal();

Calls 3

next_ordinalMethod · 0.80
put_edge_versionedMethod · 0.80
eFunction · 0.70