-
-
Notifications
You must be signed in to change notification settings - Fork 639
Labels
A-CLIArea: CLIArea: CLI
Description
Discussed in #2559
Originally posted by nyc4m April 12, 2025
Hey there 👋
When generating entities, I noticed that the output code is using the "old" convention for modules, which is to output the source files as the following:
sea-orm-cli generate entity --database-url <DB_URL> --output-dir ./src/entities
# Resulting module structure
./src/entities
/entities
mod.rs
foo.rs
bar.rs
prelude.rsI'd rather use the "new" convention as described here. This would result in the following file structure:
sea-orm-cli generate entity --database-url <DB_URL> --output-dir ./src/entities
# Resulting module structure
./src/entities/
entities.rs
entities/
foo.rs
bar.rs
prelude.rsIs there anyway I can achieve this with the current CLI ?
Metadata
Metadata
Assignees
Labels
A-CLIArea: CLIArea: CLI