Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Oct 25, 2023
1 parent ffd0709 commit f16be80
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions core/src/main/scala/zio/jdbc/JdbcDecoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,22 @@ object JdbcDecoder extends JdbcDecoderLowPriorityImplicits {
}
}

implicit val intDecoder: JdbcDecoder[Int] = JdbcDecoder(_.getInt)
implicit val longDecoder: JdbcDecoder[Long] = JdbcDecoder(_.getLong)
implicit val doubleDecoder: JdbcDecoder[Double] = JdbcDecoder(_.getDouble)
implicit val stringDecoder: JdbcDecoder[String] = JdbcDecoder(_.getString)
implicit val booleanDecoder: JdbcDecoder[Boolean] = JdbcDecoder(_.getBoolean)
implicit val bigDecimalDecoder: JdbcDecoder[java.math.BigDecimal] = JdbcDecoder(_.getBigDecimal)
implicit val intDecoder: JdbcDecoder[Int] = JdbcDecoder(_.getInt)
implicit val longDecoder: JdbcDecoder[Long] = JdbcDecoder(_.getLong)
implicit val doubleDecoder: JdbcDecoder[Double] = JdbcDecoder(_.getDouble)
implicit val stringDecoder: JdbcDecoder[String] = JdbcDecoder(_.getString)
implicit val booleanDecoder: JdbcDecoder[Boolean] = JdbcDecoder(_.getBoolean)
implicit val bigDecimalDecoder: JdbcDecoder[java.math.BigDecimal] = JdbcDecoder(_.getBigDecimal)
implicit val bigDecimalDecoderScala: JdbcDecoder[scala.math.BigDecimal] =
bigDecimalDecoder.map(scala.math.BigDecimal.javaBigDecimal2bigDecimal)
implicit val shortDecoder: JdbcDecoder[Short] = JdbcDecoder(_.getShort)
implicit val floatDecoder: JdbcDecoder[Float] = JdbcDecoder(_.getFloat)
implicit val byteDecoder: JdbcDecoder[Byte] = JdbcDecoder(_.getByte)
implicit val byteArrayDecoder: JdbcDecoder[Array[Byte]] = JdbcDecoder(_.getBytes)
implicit val blobDecoder: JdbcDecoder[Blob] = JdbcDecoder(_.getBlob)
implicit val dateDecoder: JdbcDecoder[java.sql.Date] = JdbcDecoder(_.getDate)
implicit val timeDecoder: JdbcDecoder[java.sql.Time] = JdbcDecoder(_.getTime)
implicit val timestampDecoder: JdbcDecoder[java.sql.Timestamp] = JdbcDecoder(_.getTimestamp)
implicit val shortDecoder: JdbcDecoder[Short] = JdbcDecoder(_.getShort)
implicit val floatDecoder: JdbcDecoder[Float] = JdbcDecoder(_.getFloat)
implicit val byteDecoder: JdbcDecoder[Byte] = JdbcDecoder(_.getByte)
implicit val byteArrayDecoder: JdbcDecoder[Array[Byte]] = JdbcDecoder(_.getBytes)
implicit val blobDecoder: JdbcDecoder[Blob] = JdbcDecoder(_.getBlob)
implicit val dateDecoder: JdbcDecoder[java.sql.Date] = JdbcDecoder(_.getDate)
implicit val timeDecoder: JdbcDecoder[java.sql.Time] = JdbcDecoder(_.getTime)
implicit val timestampDecoder: JdbcDecoder[java.sql.Timestamp] = JdbcDecoder(_.getTimestamp)

implicit def optionDecoder[A](implicit decoder: JdbcDecoder[A]): JdbcDecoder[Option[A]] =
JdbcDecoder(rs =>
Expand Down

0 comments on commit f16be80

Please sign in to comment.