Skip to main content

Module enum_gen

Module enum_gen 

Source

Functionsยง

check_variant_collisions
Detect two SQL enum variants that collapse to the same Rust identifier after to_upper_camel_case (e.g. "foo bar" and "foo_bar" both become FooBar). Returns an error pointing at the offending pair so the user can rename one side in the database before regenerating.
generate_enum
generate_enum_with_schema