pub fn snapshot_version_at(dir: &Path) -> Result<Option<u16>>Expand description
Return the on-disk snapshot format version without decoding the full snapshot.
Reads only the 6-byte header (magic + version LE). Returns None when no
snapshot file exists (WAL-only store). Returns an error if the header is
malformed.