-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Hello,
I can't find a way to define an enum with Crecto.
PostgreSQL type:
CREATE TYPE enum_lang AS ENUM('en', 'fr');The column:
enum_field :enum_lang, Langs, column_name: "lang", column_type: StringEnum:
enum Langs
EN
FR
endError:
Unhandled exception: PG::ResultSet#read returned a Slice(UInt8). A (String | Nil) was expected. (Exception)
If i naively replace String by Slice(Uint8), an error occurred because Slice(Uint8) is not a supported type in Crecto.
Please, how am I supposed to handle this enum?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels