Skip to main content

Module naming

Module naming 

Source
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 PascalCase or arbitrary identifier to snake_case.
table_name
The table name for a model (snake_case + pluralized): User -> users.