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 file for specified tables only #1245

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

billy1624
Copy link
Member

PR Info

I'm not sure why it was originally be implemented this way. The original approach takes a comma separated table name and then conditionally generate entity of those with table name is a substring of the comma separated input.

That means, if you have tables user, user_group and group in your database. Then, given your comma separated input be user. It will generate the entity file for user and user_group tables.

Bug Fixes

  • correctly generate entity file for specified tables only

@billy1624 billy1624 self-assigned this Nov 23, 2022
@billy1624 billy1624 marked this pull request as ready for review November 23, 2022 11:14
@billy1624 billy1624 merged commit d30a561 into master Nov 24, 2022
@billy1624 billy1624 deleted the fix-generate-entity-filter-tables branch November 24, 2022 04:21
tyt2y3 pushed a commit that referenced this pull request Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

sea-orm-cli generate entity --tables argument doesn't work as described
1 participant