You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a enum type defined in my column of a table.when i use diesel_ext > src/models.rs I ran into a issue of {MyEnumType} is not recognized. Please feel free to expand the HashMap.This could provide good hints: https://kotiri.com/2018/01/31/postgresql-diesel-rust-types.html is there any way to allow the custom types.There's no problem in generating schema as it finds the enum and creates some Empty structs for enums.Later i can use diesel-derive-enums for working with enums
The text was updated successfully, but these errors were encountered:
The workaround I've used is the --map option to specify which rust type it is (which is itself, generated by diesel print-schema) like so: diesel_ext --map {MyEnumType} {MyEnumType}. This could be done automatically, might work on this and raise a PR when I get some time.
I have a enum type defined in my column of a table.when i use
diesel_ext > src/models.rs
I ran into a issue of{MyEnumType} is not recognized. Please feel free to expand the HashMap.This could provide good hints: https://kotiri.com/2018/01/31/postgresql-diesel-rust-types.html
is there any way to allow the custom types.There's no problem in generating schema as it finds the enum and creates some Empty structs for enums.Later i can use diesel-derive-enums for working with enumsThe text was updated successfully, but these errors were encountered: