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

Function put_cell

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

Source from the content-addressed store, hash-verified

42}
43
44fn put_cell(e: &mut ArrayEngine, x: i64, v: i64, sys_ms: i64, lsn: u64) {
45 e.put_cells(
46 &aid(),
47 vec![ArrayPutCell {
48 coord: vec![CoordValue::Int64(x)],
49 attrs: vec![CellValue::Int64(v)],
50 surrogate: Surrogate::ZERO,
51 system_from_ms: sys_ms,
52 valid_from_ms: 0,
53 valid_until_ms: i64::MAX,
54 }],
55 lsn,
56 )
57 .unwrap();
58}
59
60fn delete_cell(e: &mut ArrayEngine, x: i64, sys_ms: i64, lsn: u64) {
61 e.delete_cells(

Calls 2

put_cellsMethod · 0.80
aidFunction · 0.70

Tested by

no test coverage detected