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

Method read

nodedb-physical/src/physical_plan/document/update_value.rs:40–50  ·  view source on GitHub ↗
(reader: &mut R)

Source from the content-addressed store, hash-verified

38
39impl<'a> zerompk::FromMessagePack<'a> for UpdateValue {
40 fn read<R: zerompk::Read<'a>>(reader: &mut R) -> zerompk::Result<Self> {
41 reader.check_array_len(2)?;
42 let tag = reader.read_u8()?;
43 match tag {
44 0 => Ok(UpdateValue::Literal(Vec::<u8>::read(reader)?)),
45 1 => Ok(UpdateValue::Expr(nodedb_query::expr::SqlExpr::read(
46 reader,
47 )?)),
48 _ => Err(zerompk::Error::InvalidMarker(tag)),
49 }
50 }
51}

Callers

nothing calls this directly

Calls 3

read_u8Method · 0.80
readFunction · 0.50
ExprEnum · 0.50

Tested by

no test coverage detected