(&self, path: &str)
| 1736 | } |
| 1737 | |
| 1738 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1739 | use crate::crdt::tables::decode_trunk_id; |
| 1740 | let table = self.txn.open_table(PATH_TRUNK)?; |
| 1741 | let result = table.get(path)?; |
| 1742 | match result { |
| 1743 | Some(guard) => { |
| 1744 | let key: [u8; 12] = *guard.value(); |
| 1745 | drop(guard); |
| 1746 | Ok(Some(decode_trunk_id(&key))) |
| 1747 | } |
| 1748 | None => Ok(None), |
| 1749 | } |
| 1750 | } |
| 1751 | |
| 1752 | fn iter_trunk_branches( |
| 1753 | &self, |
nothing calls this directly
no test coverage detected