I\'m using SQLAlchemy core with a postgresql database and I would like to add the ENUM type to my table definition. According to the postgresql documentatio
You need to import Enum from sqlalchemy and add a name to it. It should work like this:
from sqlalchemy import Enum person = Table("user_profile", metadata, Column("name", String(20)), Column("gender", Enum("female", "male", name="gender_enum", create_type=False)) );