Load an immutable session manifest by content hash.
(
&self,
hash: &Hash,
)
| 584 | |
| 585 | /// Load an immutable session manifest by content hash. |
| 586 | pub fn get_session_manifest( |
| 587 | &self, |
| 588 | hash: &Hash, |
| 589 | ) -> Result<Option<atomic_core::change::session::SessionManifest>, RepositoryError> { |
| 590 | let txn = self |
| 591 | .pristine |
| 592 | .read_txn() |
| 593 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 594 | txn.get_session_manifest(hash) |
| 595 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 596 | } |
| 597 | |
| 598 | /// Resolve the latest manifest hash for an external session ID. |
| 599 | pub fn get_session_head(&self, session_id: &str) -> Result<Option<Hash>, RepositoryError> { |
no test coverage detected