(&self, path: &str)
| 1830 | } |
| 1831 | |
| 1832 | fn get_trunk_by_path(&self, path: &str) -> PristineResult<Option<crate::crdt::TrunkId>> { |
| 1833 | use crate::crdt::tables::decode_trunk_id; |
| 1834 | let table = self.txn.open_table(PATH_TRUNK)?; |
| 1835 | let result = table.get(path)?; |
| 1836 | match result { |
| 1837 | Some(guard) => { |
| 1838 | let key: [u8; 12] = *guard.value(); |
| 1839 | drop(guard); |
| 1840 | Ok(Some(decode_trunk_id(&key))) |
| 1841 | } |
| 1842 | None => Ok(None), |
| 1843 | } |
| 1844 | } |
| 1845 | |
| 1846 | fn iter_trunk_branches( |
| 1847 | &self, |
nothing calls this directly
no test coverage detected