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

Function make_op

nodedb-array/src/sync/op_log.rs:145–159  ·  view source on GitHub ↗
(array: &str, ms: u64, logical: u16)

Source from the content-addressed store, hash-verified

143 }
144
145 fn make_op(array: &str, ms: u64, logical: u16) -> ArrayOp {
146 ArrayOp {
147 header: ArrayOpHeader {
148 array: array.into(),
149 hlc: hlc(ms, logical),
150 schema_hlc: hlc(1, 0),
151 valid_from_ms: 0,
152 valid_until_ms: -1,
153 system_from_ms: ms as i64,
154 },
155 kind: ArrayOpKind::Put,
156 coord: vec![CoordValue::Int64(ms as i64)],
157 attrs: Some(vec![CellValue::Null]),
158 }
159 }
160
161 #[test]
162 fn append_then_scan() {

Callers 5

append_then_scanFunction · 0.70
scan_from_skips_belowFunction · 0.70
scan_range_filters_arrayFunction · 0.70
len_counts_allFunction · 0.70

Calls 1

hlcFunction · 0.70

Tested by 5

append_then_scanFunction · 0.56
scan_from_skips_belowFunction · 0.56
scan_range_filters_arrayFunction · 0.56
len_counts_allFunction · 0.56