Replies: 1 comment 1 reply
-
@alwins0n I think https://github.com/com-lihaoyi/scalasql/blob/main/docs/reference.md#datatypesenclosing is what you want |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for creating this!
Would it be possible to support nested or "embedded" case classes within a case class representation of a table?
non compiling example:
the expected outcome in this case would be that the address value is treated as if it were flat in the customer table. this would allow sharing or reusing data structures in different contexts.
a probably better example, would be
MonetaryAmount
with a value and currency component. its used a lot in different places if an app commits to storing values with currency.Maybe there is some way to hook into something like a
CompositeTypeMapper
where one can supply custom givens analogous to theTypeMapper
typeclassfor reference, I asked a somewhat similar question in another repo: AugustNagro/magnum#24 obviously, it's tough for me to let go of that feature after years of using java's hibernate :)
Beta Was this translation helpful? Give feedback.
All reactions