-
-
Notifications
You must be signed in to change notification settings - Fork 720
🐛 Fix Enum Type Mapping #24
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
Conversation
Change SQLAlchemyEnum to _Enum
Is there anything else pending for this to be merged, @tiangolo ? |
It's worrying that this isn't merged in yet or had any feedback in 6 months, why does @tiangolo create these libraries without adequate maintainer resource to support them? (Suffering from success probably) ... Is it not possible to find community maintainers? Can I be a community maintainer? I'll merge it in! I'll even write some pretty release notes 🎨 |
Should this branch get rebased and try to get merged from maintainers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@tiangolo SQLModel might not be a primary focus for you right now, that's understandable, but might I suggest you look at establishing a trusted maintainer team, so we can push some of these fixes through. |
Codecov Report
@@ Coverage Diff @@
## main #24 +/- ##
==========================================
- Coverage 97.59% 97.51% -0.08%
==========================================
Files 182 182
Lines 6060 6031 -29
==========================================
- Hits 5914 5881 -33
- Misses 146 150 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
📝 Docs preview for commit e915864 at: https://630a9c0d8dc0eb53d76d5dbb--sqlmodel.netlify.app |
Thank you @zbclove! 🍰 And thanks everyone for the discussion. ☕ If you want to help me, the best help I can get is helping others with their questions in issues. That's what consumes most of the time. This was solved in #165 that included tests, so I'll close this one. The fix will be available in the next release, SQLModel Thanks for the effort! ☕ |
According to SQLAlchemy's Generic Type Document
Python's class inherit from enum.Enum should be wrapped with sqlalchemy.sql.Enum(sqlalchemy.sql.sqltypes.Enum) when it is set to sqlalchemy.Column()'s type_ field.