Store list of enum member.
Project description
Store list of enum member as unicode string. it works list of python on python-side & stored unicode text in database. To store scalar values like integer, float read about ScalarListType in SQLAlchemy-Utils
Getting started
import enum
from sqlalchemy.schma import Column
from sqlalchemy_enum_list import EnumListType
class Genre(enum.Enum):
pop = 1
soul = 2
jazz = 3
class Song(Base):
genre = Column(EnumListType(Genre, int))
song = Song(genre=[Genre.soul, Genre.jazz])
Changelogs
0.1.1
Added sqlalchemy_enum_list.EnumSetType
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for SQLAlchemy-Enum-List-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7fd688f5ed951a9715df7d40494cf6747f559fb48e970a334f6e64a5355bc1 |
|
MD5 | 0a465387f53ec691c2fa36ef50b2f83f |
|
BLAKE2b-256 | 4166e918afc1c2aa85374a48fb925ccc22d91c924f65c332c6dde64e598d58b3 |
Close
Hashes for SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3309732c633ccebdb4a858ae70a3433bc8ba3af14ac075b1105eb96335e48858 |
|
MD5 | 0d3f1db736eaf922116938df5e81e053 |
|
BLAKE2b-256 | 4fa91cae13b956570e67c5b752986ac306127d3590affa3171cb35f4c05d2ae6 |