Expand description
Naming conventions shared across generators.
Centralised so every crate agrees on how a model name maps to a module name, a table name, etc. Kept dependency-free (no heavy inflection crate) for the MVP.
Functionsยง
- pluralize
- Naive pluralisation good enough for table names in the MVP.
- snake_
case - Convert a
PascalCaseor arbitrary identifier tosnake_case. - table_
name - The table name for a model (snake_case + pluralized):
User->users.