Skip to content

Commit

Permalink
Fixed compile
Browse files Browse the repository at this point in the history
  • Loading branch information
takapi327 committed Dec 29, 2024
1 parent b1bf7ea commit 6fcf5b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,13 @@ object Column extends TwiddleSyntax[Column]:
override def imap[A, B](fa: Column[A])(f: A => B)(g: B => A): Column[B] = fa.imap(f)(g)
override def product[A, B](fa: Column[A], fb: Column[B]): Column[(A, B)] = fa product fb

case class Pure[A](value: T) extends Column[A]:
case class Pure[A](value: A) extends Column[A]:
override def name: String = ""
override def alias: Option[String] = None
override def as(name: String): Column[A] = this
override def decoder: Decoder[A] =
new Decoder[A]((resultSet: ResultSet, prefix: Option[String]) => value)
override def encoder: Encoder[A] = (value: T) => Encoder.Encoded.success(List.empty)
override def encoder: Encoder[A] = (value: A) => Encoder.Encoded.success(List.empty)
override def insertStatement: String = ""
override def updateStatement: String = ""
override def duplicateKeyUpdateStatement: String = ""
Expand Down

0 comments on commit 6fcf5b5

Please sign in to comment.