Skip to main content

Module paths

Module paths 

Source
Expand description

Shared, filesystem/object-key path mapping used by every storage substrate so a record lands at the same logical location regardless of backend.

Functionsยง

decode_segment
Decode a segment produced by segment back to the original component. Exact inverse of segment; on our own output the round-trip is lossless. A stray % not followed by two hex digits is passed through literally so decoding never panics on unexpected input.
object_key
The object-key form namespace/collection/id.json for object stores.
record_components
The three sanitized path components for a record: (namespace_dir, collection_dir, "<id>.json"). Backends join these with their own separator (PathBuf for fs/git, / for object keys).
segment
Encode one key component as a single safe path/key segment.