Replies: 4 comments 11 replies
-
Do you mean mapping between Postgres enum and Rust enum? |
Beta Was this translation helpful? Give feedback.
-
Thank you for using the discussion section.
I think 1 is already possible currently, but we have not had a documented usage. |
Beta Was this translation helpful? Give feedback.
-
We have two (or three) possibilities here,
|
Beta Was this translation helpful? Give feedback.
-
For general enumerations (not defined in SQL) an approach might be to offer a config file for code generation. The config file could contain mapping for types in specific tables like:
Of course |
Beta Was this translation helpful? Give feedback.
-
Generating the code, is there anything planned about enumerations? Getting enums from db or allowing custom enum mapping?
Beta Was this translation helpful? Give feedback.
All reactions