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

Codegen column_name proc_macro attribute if column name isn't in snake case #395

Closed
billy1624 opened this issue Dec 21, 2021 · 4 comments · Fixed by #433
Closed

Codegen column_name proc_macro attribute if column name isn't in snake case #395

billy1624 opened this issue Dec 21, 2021 · 4 comments · Fixed by #433
Assignees
Milestone

Comments

@billy1624
Copy link
Member

And a question I'm having, doesn't sea-orm-cli automatically generate the column_name ?

Originally posted by @Gabriel-Paulucci in #391 (comment)

@billy1624 billy1624 self-assigned this Jan 7, 2022
@billy1624 billy1624 added this to the 0.6.x milestone Jan 25, 2022
@Johann150
Copy link

I just got surprised by this when trying to implement something on a big legacy database whose structure I can not change. The code generation renaming columns in the code without even telling me means that the generated code does not work.

Please add this! 🙏

@billy1624
Copy link
Member Author

Hey @Johann150, we are releasing this fix soon, in the next sprint.

Btw... at the meantime you can clone the PR #433, then install the updated CLI.

@Johann150
Copy link

Thank you 😃

@billy1624
Copy link
Member Author

Welcome!

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

Successfully merging a pull request may close this issue.

2 participants