read_version

Function read_version 

Source
pub fn read_version(
    journals: &mut Vec<Arc<Journal>>,
    aim_path: &Path,
    version: u32,
) -> Result<String>
Expand description

Read the contents of a specific workflow version using journal offsets.

Loads journal entries via load_journal, locates the Journal record whose version() matches version, and returns UTF-8 content from its start offset up to (but not including) the next entry, or to EOF.

Errors if the version is missing, files cannot be read, or content is not UTF-8.