Mapping between Rust and PostgresSQL #2052
Unanswered
felipesere
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 I'm trying to map a very simple PostgreSQL enum to a Rust enum.
The postgres one is also created via a Rust migration code:
The generated enum then looks like this:
Intuitively, it all lines up, but when I run my test code, I get the following error:
It makes me think... is it the
Option<...>
that somehow got wrapped around it?Beta Was this translation helpful? Give feedback.
All reactions