< Prev: JSON
Up: Column Types
Next: BYTEA, BLOB >

Column Types: ENUM

The sq representation of ENUM is the EnumField. EnumField is just a type aliases of StringField. Whatever you can do on a StringField, you can do on an EnumField.
type EnumField = StringField
No first class support for enum generation?
I don't think ENUMs are worth the tradeoffs compared to a foreign key constraint. They were put in sq just so that ENUM columns would get a representation Field for code generation. If you want first class ENUM support with const values generated, please submit an issue detailing how you use ENUMs in your codebase.
< Prev: JSON
Up: Column Types
Next: BYTEA, BLOB >