Uh oh!
There was an error while loading. Please reload this page.
🐛 Fix Enum Type Mapping - #24
Conversation
Change SQLAlchemyEnum to _Enum
creatorrr
commented
Oct 22, 2021
Is there anything else pending for this to be merged, @tiangolo ? |
invokermain
commented
Apr 11, 2022
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 🎨 |
Miguelme
commented
Apr 22, 2022
Should this branch get rebased and try to get merged from maintainers? |
oldfielj-ansto
commented
Apr 26, 2022
@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 |
tiangolo
commented
Aug 27, 2022
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.