Query or SQL from case class?
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.7k
- Forks
- 175
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 9
Description
Is it a bad idea to ask for a function that generates a Query or a SQL fragment from a case class? Can this be done at compile time?
If a column/table name differed from the case class field/class name some kind of annotation or maybe a mapping DSL could exist.
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
The issue names no files, tests, or entry points and frames a compile-time case-class-to-query or SQL mapping as an open design question. Start by reviewing Skunk’s existing query and SQL-fragment APIs and how Scala case classes could map renamed columns or tables. Done would require an agreed scope and design, plus an implementation and tests if the feature is accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres, scala
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100