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

Function put

nodedb/tests/bitemporal_array_temporal_purge.rs:65–79  ·  view source on GitHub ↗
(e: &mut ArrayEngine, x: i64, v: i64, sys_ms: i64, lsn: u64)

Source from the content-addressed store, hash-verified

63}
64
65fn put(e: &mut ArrayEngine, x: i64, v: i64, sys_ms: i64, lsn: u64) {
66 e.put_cells(
67 &aid(),
68 vec![ArrayPutCell {
69 coord: vec![CoordValue::Int64(x)],
70 attrs: vec![CellValue::Int64(v)],
71 surrogate: Surrogate::ZERO,
72 system_from_ms: sys_ms,
73 valid_from_ms: 0,
74 valid_until_ms: i64::MAX,
75 }],
76 lsn,
77 )
78 .unwrap();
79}
80
81fn erase(e: &mut ArrayEngine, x: i64, sys_ms: i64, lsn: u64) {
82 e.gdpr_erase_cell(&aid(), vec![CoordValue::Int64(x)], sys_ms, lsn)

Calls 2

put_cellsMethod · 0.80
aidFunction · 0.70

Tested by

no test coverage detected