pub fn sanitize(branch: &str) -> StringExpand description
Sanitize a branch name so it can be used as a KuzuDB table name prefix.
Rules applied (in order):
/→__(preserves branch hierarchy visibility)- any remaining non-alphanumeric char →
_ - leading digit → prefix with
b_(table names can’t start with a digit)
Examples:
main→mainfeat/auth→feat__authfeat/auth-v2→feat__auth_v2release/v1.0→release__v1_0