Postgres, custom enum types #2321
-
Hello everyone, it's not super clear to me how to use custom types with postgres.
Then in rust I have an enum such as this:
but when I try to query, for example like this:
I get What am I missing? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
VersBinarii
Jan 26, 2023
Replies: 1 comment 6 replies
-
try: |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
Krahos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try:
INSERT INTO table (id, custom_type_field AS "custom_type_field: MyType") ...