MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_session_manifest

Method get_session_manifest

atomic-repository/src/repository/changes.rs:586–596  ·  view source on GitHub ↗

Load an immutable session manifest by content hash.

(
        &self,
        hash: &Hash,
    )

Source from the content-addressed store, hash-verified

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> {

Callers 2

rebuild_session_indexMethod · 0.45

Calls 1

read_txnMethod · 0.80

Tested by

no test coverage detected