typelevel / typelevel/doobie

Meta constructor for struct types

Open
#49 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.2k
Forks
379
Avg merge
14m
Merged PRs (30d)
8

Description

I think the path from here to there is:

  • On Meta we need toObject and fromObject that perform a cast at the lowest level and then apply any accumulated invariant mappings. Propagate this to Atom.
  • On Composite we then implement toObjectArray and fromObjectArray inductively, and from there trivially we can implement Meta.fromComposite.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing Meta, Atom, and Composite definitions and their current conversion behavior. Implement the proposed low-level conversions and invariant mappings, then the array conversions and Meta.fromComposite; done means struct types can convert to and from objects through this path.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.