How a Postgres enum label is spelled as a Jai enum member, and back. A label that is a plain
name is used as it is, so 'pending' is .pending. Any other (spaces, dashes, a leading
digit, a Jai keyword, a double underscore) becomes __ followed by its letters and digits,
with every other byte as _ and two hex digits: 'in progress' is __in_20progress.
- label: the label as the server has it.
enum_member_name :: (label: string) -> string
How a Postgres enum label is spelled as a Jai enum member, and back. A label that is a plain
name is used as it is, so 'pending' is .pending. Any other (spaces, dashes, a leading
digit, a Jai keyword, a double underscore) becomes __ followed by its letters and digits,
with every other byte as _ and two hex digits: 'in progress' is __in_20progress.
Parameters
- label: string
- the label as the server has it.
Returns
- string