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

Method old_fields

nodedb/src/control/trigger/batch/collector.rs:114–122  ·  view source on GitHub ↗

Access OLD fields, decoding lazily from raw bytes if needed.

(&self)

Source from the content-addressed store, hash-verified

112
113 /// Access OLD fields, decoding lazily from raw bytes if needed.
114 pub fn old_fields(&self) -> Option<&HashMap<String, Value>> {
115 self.old_cache
116 .get_or_init(|| {
117 self.old_raw
118 .as_ref()
119 .and_then(|bytes| decode_msgpack_to_value_map(bytes, &self.row_id))
120 })
121 .as_ref()
122 }
123
124 /// Raw NEW bytes (MessagePack). Used for binary fast-reject in WHEN filters.
125 ///

Callers 3

build_row_bindingsFunction · 0.80
build_before_bindingsFunction · 0.80
dispatch_trigger_batchFunction · 0.80

Calls 2

as_refMethod · 0.45

Tested by

no test coverage detected