Access OLD fields, decoding lazily from raw bytes if needed.
(&self)
| 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 | /// |
no test coverage detected