(&self, path: &str)
| 1215 | } |
| 1216 | |
| 1217 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1218 | use crate::crdt::tables::decode_trunk_id; |
| 1219 | let table = self.txn.open_table(PATH_TRUNK)?; |
| 1220 | let result = table.get(path)?; |
| 1221 | match result { |
| 1222 | Some(guard) => { |
| 1223 | let key: [u8; 12] = *guard.value(); |
| 1224 | drop(guard); |
| 1225 | Ok(Some(decode_trunk_id(&key))) |
| 1226 | } |
| 1227 | None => Ok(None), |
| 1228 | } |
| 1229 | } |
| 1230 | |
| 1231 | fn iter_trunk_branches( |
| 1232 | &self, |
nothing calls this directly
no test coverage detected