We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ColumnMapper
Not every nested case class should be a UDT. Some case classes could be mapped to columns, they could be flatten.
Consider the example:
case class Bar(name: String, age: Int) case class Foo(id: UUID, bar: Bar)
This could be mapped as:
CREATE TABLE foos (id UUID, bar_name TEXT, bar_age INT)
We want to introduce a way to create a ColumnMapper that can make this mapping possible. At a high level this method should look like:
object ColumnMapper { def of[T](prefix: String = "", renames: T => (Any, ColumnName)*): ColumnMapper[T] = ??? }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not every nested case class should be a UDT. Some case classes could be mapped to columns, they could be flatten.
Consider the example:
This could be mapped as:
We want to introduce a way to create a
ColumnMapper
that can make this mapping possible. At a high level this method should look like:The text was updated successfully, but these errors were encountered: