Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli generate entity select multiple tables #284

Closed
AngelOnFira opened this issue Oct 31, 2021 · 2 comments
Closed

Cli generate entity select multiple tables #284

AngelOnFira opened this issue Oct 31, 2021 · 2 comments

Comments

@AngelOnFira
Copy link
Contributor

Currently, if I want to select multiple tables from the database using sea-orm-cli, I have to do something like this:

sea-orm-cli generate entity -o schema --tables \
    application_application,land_locations_feature,land_locations_featurecollection,land_locations_geometry,land_locations_properties

It would be nice if I could instead clean it up somehow. Here is something that might look better.

sea-orm-cli generate entity -o schema \
    --tables application_application \
    --tables land_locations_feature \
    --tables land_locations_featurecollection \
    --tables land_locations_geometry \
    --tables land_locations_properties
@billy1624
Copy link
Member

sea-orm-cli generate entity -o schema \
    --tables application_application \
    --tables land_locations_feature \
    --tables land_locations_featurecollection \
    --tables land_locations_geometry \
    --tables land_locations_properties

Hi @AngelOnFira, that make sense to me!

P.S. https://docs.rs/clap/2.33.3/clap/struct.Arg.html#method.multiple

arpancodes pushed a commit to arpancodes/sea-orm that referenced this issue Apr 8, 2022
@billy1624
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants