pub fn validate_name(name: &str) -> DataResult<()>Expand description
Check a space, document, or collection name.
The charset is narrow on purpose. These names are composed into storage
record keys ({space}/{doc}), so a name containing a separator or a
path traversal would make a key that parses back into different parts
than it was built from. Rejecting the character is the cheap half of
that problem; the expensive half is discovering it after records exist.