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

DeriveEntityModel macros override column name #695

Merged
merged 3 commits into from
May 9, 2022

Conversation

billy1624
Copy link
Member

PR Info

TODO

  • Generate #[sea_orm(column_name = "<model's field name>")] for column variant that fail to convert into pascal case and back to snake case

Fixes

  • Prevent some special model field named in snake case such as a_b_c_d being interpreted as column name abcd in column enum

@billy1624 billy1624 marked this pull request as ready for review May 4, 2022 08:21
@billy1624 billy1624 requested a review from tyt2y3 May 4, 2022 08:21
@tyt2y3 tyt2y3 merged commit 840f8f6 into master May 9, 2022
@tyt2y3 tyt2y3 deleted the 630-derive-entity-model-override-column-name branch May 9, 2022 14:09
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 this pull request may close these issues.

Column names with single letters separated by underscores are concatenated
2 participants