Read every mutable session head for index rebuilds.
(&self)
| 1133 | |
| 1134 | /// Read every mutable session head for index rebuilds. |
| 1135 | pub fn list_session_heads(&self) -> PristineResult<Vec<(String, crate::types::Hash)>> { |
| 1136 | let table = self.txn.open_table(SESSION_HEADS)?; |
| 1137 | let mut heads = Vec::new(); |
| 1138 | for result in table.iter()? { |
| 1139 | let (session_id, hash) = result?; |
| 1140 | heads.push(( |
| 1141 | session_id.value().to_string(), |
| 1142 | crate::types::Hash::from_bytes(*hash.value()), |
| 1143 | )); |
| 1144 | } |
| 1145 | Ok(heads) |
| 1146 | } |
| 1147 | |
| 1148 | /// Get all session events for a provenance graph. |
| 1149 | /// |
no test coverage detected