(&self, path: &str)
| 1688 | } |
| 1689 | |
| 1690 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1691 | use crate::crdt::tables::decode_trunk_id; |
| 1692 | let table = self.txn.open_table(PATH_TRUNK)?; |
| 1693 | let result = table.get(path)?; |
| 1694 | match result { |
| 1695 | Some(guard) => { |
| 1696 | let key: [u8; 12] = *guard.value(); |
| 1697 | drop(guard); |
| 1698 | Ok(Some(decode_trunk_id(&key))) |
| 1699 | } |
| 1700 | None => Ok(None), |
| 1701 | } |
| 1702 | } |
| 1703 | |
| 1704 | fn iter_trunk_branches( |
| 1705 | &self, |
nothing calls this directly
no test coverage detected