sqlalchemy-enum34
sqlalchemy-enum34 copied to clipboard
SQLAlchemy type to store standard enum.Enum values
While using sqlalchemy_enum34 I've seen the following error message: SAWarning: TypeDecorator Enum('CREATED', 'RETRY', 'EXPIRED', 'FINISHED') will not produce a cache key because the ``cache_ok`` attribute is not set to True....
Weird `LookupError` raises when using `EnumType` as primary key. I added following test case to `test.py`: ```python class EnumForPkey(enum.Enum): A = 'a' B = 'b' C = 'c' class TableWithPkeyEnum(Base):...
``` pytb tests/reservation_test.py:1: in from ***.reservation import Reservation, Traveler, TravelerType ***/reservation.py:83: in class Traveler(Base): ***/reservation.py:102: in Traveler type = Column(EnumType(TravelerType), nullable=False) ../../.virtualenvs/***/lib/python3.5/site-packages/sqlalchemy_enum34.py:39: in __init__ super(Enum, self).__init__(*enumerants, **options) ../../.virtualenvs/***/lib/python3.5/site-packages/sqlalchemy/sql/type_api.py:706: in __init__...
제 영어가 매우 불량함을 감안하여 한글과 함께 병기합니다. (I think my poor english is not good for reader, so I write Korean together.) Code sample ``` py3 class Purpose(enum.Enum): normal...