Store a `Change` object into the redb store. This serializes the change to V3 format, then imports the sections into the redb tables. This is the primary write path during recording. # Returns The blake3 content hash of the stored change.
(&self, change: &Change)
| 387 | /// |
| 388 | /// The blake3 content hash of the stored change. |
| 389 | pub fn save_change(&self, change: &Change) -> RedbStoreResult<[u8; 32]> { |
| 390 | let mut buffer = Vec::new(); |
| 391 | change |
| 392 | .serialize(&mut buffer) |
| 393 | .map_err(|e| RedbStoreError::Serialization(e.to_string()))?; |
| 394 | self.import_v3_bytes(&buffer) |
| 395 | } |
| 396 | |
| 397 | // ── Read Operations ──────────────────────────────────────────── |
| 398 |