Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When
sqlacodegen
outputs aenum_column: Mapped[Optional[str]] = mapped_column(Enum())
for a postgresql table with an enum type - What's your approach to interacting with that column in Python?It would be easier of the
Enum
itself was created in the output as something we could import instead of it only being created as an argument to mapped column. Similar to the example - https://docs.sqlalchemy.org/en/20/orm/declarative_tables.html#using-python-enum-or-pep-586-literal-types-in-the-type-mapBeta Was this translation helpful? Give feedback.
All reactions