Postgres enum support
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Scala
- Stars
- 189
- Forks
- 32
- Avg merge
- 18h 31m
- Merged PRs (30d)
- 37
Description
I'm trying to use a Postgres enum type and It get the following error:
ERROR: UNION types text and my_enum_type cannot be matched
The implicit Meta[MyEnumType] is defined with pgEnumString("my_enum_type", MyEnumType.fromString, _.value) and all the wiring seems to be fine.
Thank you.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the implicit Meta[MyEnumType] defined with pgEnumString("my_enum_type", MyEnumType.fromString, _.value) and reproduce the UNION error involving text and my_enum_type. Determine the expected enum behavior and identify the relevant database integration tests; done should include working Postgres enum queries without the type-mismatch error and a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres, scala
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100