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
segmentback to the original component. Exact inverse ofsegment; 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.jsonfor 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 (PathBuffor fs/git,/for object keys). - segment
- Encode one key component as a single safe path/key segment.