Question about ZIO quill update Option[String] field #7560
Unanswered
preet-tech89
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am using quill library to update the table with Option[String] field like the question posted by someone here:
https://stackoverflow.com/questions/71252682/how-to-perform-an-update-with-optional-columns-using-scala-quill/74564006#74564006
But when I'm trying to do
.update(
p => p.abc -> lift(p1.abc.getOrElse(p.abc))
)
Then I'm getting below error (which I posted on stack over flow as well) during compileScala task
Can't find Encoder for type 'java.io.Serializable'. Note that Encoders are invariant. For example, use lift(Option(1)) instead of lift(Some(1)) since the available encoder is for Option, not Some. As an alternative for types that don't provide a method like Option.apply, you can use type widening: lift(MyEnum.SomeValue: MyEnum.Value) Error occurred in an application involving default arguments.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions