You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQLAlchemy offers great support for ENUM fields, mapping them from either a list of options or a Python Enum.
OData-Query doesn't utilize this feature well enough, and currently just crashes if you try to use a non-existing ENUM member.
The text was updated successfully, but these errors were encountered:
This is partially solved in SQLAlchemy by passing validate_strings=True to the ENUM definition, which will raise LookupError when an unknown enum member is used. So this might not be our concern.
One adjacent feature that would be cool is supporting OData's enum type, which uses syntax like status eq PostStatus'DRAFT'.
OliverHofkens
changed the title
Better support for database ENUM fields in SQLAlchemy
Better support for ENUMs
Feb 25, 2022
SQLAlchemy offers great support for
ENUM
fields, mapping them from either a list of options or a PythonEnum
.OData-Query doesn't utilize this feature well enough, and currently just crashes if you try to use a non-existing
ENUM
member.The text was updated successfully, but these errors were encountered: