From 9f45adae5660e026777743b9814c3a151785520e Mon Sep 17 00:00:00 2001 From: tuminglei Date: Sun, 17 Dec 2023 19:18:44 +0800 Subject: [PATCH] jump to v0.22.0-M5 --- .../tminglei/slickpg/composite/PgCompositeExtensions.scala | 5 ----- .../com/github/tminglei/slickpg/utils/TypeConverters.scala | 6 ------ .../com/github/tminglei/slickpg/PgCompositeSupport.scala | 5 ----- 3 files changed, 16 deletions(-) diff --git a/core/src/main/scala-3/com/github/tminglei/slickpg/composite/PgCompositeExtensions.scala b/core/src/main/scala-3/com/github/tminglei/slickpg/composite/PgCompositeExtensions.scala index 04e52248..7a9f4bf7 100644 --- a/core/src/main/scala-3/com/github/tminglei/slickpg/composite/PgCompositeExtensions.scala +++ b/core/src/main/scala-3/com/github/tminglei/slickpg/composite/PgCompositeExtensions.scala @@ -1,11 +1,6 @@ package com.github.tminglei.slickpg.composite -import izumi.reflect.macrortti.LightTypeTag -import izumi.reflect.Tag import slick.jdbc.{JdbcTypesComponent, PostgresProfile} -import scala.annotation.static -import scala.collection.concurrent.TrieMap -import scala.reflect.{classTag, ClassTag} trait Struct extends AnyRef diff --git a/core/src/main/scala-3/com/github/tminglei/slickpg/utils/TypeConverters.scala b/core/src/main/scala-3/com/github/tminglei/slickpg/utils/TypeConverters.scala index 7fb8f191..6dcfb7c4 100644 --- a/core/src/main/scala-3/com/github/tminglei/slickpg/utils/TypeConverters.scala +++ b/core/src/main/scala-3/com/github/tminglei/slickpg/utils/TypeConverters.scala @@ -1,8 +1,6 @@ package com.github.tminglei.slickpg package utils -import izumi.reflect.{Tag => TTag} -import izumi.reflect.macrortti.LightTypeTag import slick.util.Logging import java.sql.{Date, Time, Timestamp} import java.time.{LocalDate, LocalDateTime, LocalTime} @@ -11,9 +9,6 @@ import java.util.UUID case class RegisteredTypeConverter[From, To](convert: From => To) object TypeConverters extends Logging { - case class ConvConfig(from: LightTypeTag, to: LightTypeTag, var conv: (_ => _)) - - private var convConfigList = List[ConvConfig]() // register basic converters implicit val StringToInt: RegisteredTypeConverter[String, Int] = RegisteredTypeConverter[String, Int](_.toInt) @@ -51,7 +46,6 @@ object TypeConverters extends Logging { implicit val LocalTimeToString: RegisteredTypeConverter[LocalTime, String] = RegisteredTypeConverter(_.toString) implicit val LocalDateTimeToString: RegisteredTypeConverter[LocalDateTime, String] = RegisteredTypeConverter(_.toString) - def converter[FROM, TO](implicit converter: RegisteredTypeConverter[FROM, TO]): (FROM => TO) = converter.convert /// diff --git a/src/main/scala-3/com/github/tminglei/slickpg/PgCompositeSupport.scala b/src/main/scala-3/com/github/tminglei/slickpg/PgCompositeSupport.scala index da1570cc..d92ac1a2 100644 --- a/src/main/scala-3/com/github/tminglei/slickpg/PgCompositeSupport.scala +++ b/src/main/scala-3/com/github/tminglei/slickpg/PgCompositeSupport.scala @@ -1,15 +1,10 @@ package com.github.tminglei.slickpg -import izumi.reflect.macrortti.LightTypeTag -import izumi.reflect.{Tag => TTag} - import scala.reflect.{ClassTag, classTag} import composite.Struct import slick.jdbc.{PositionedResult, PostgresProfile} import slick.jdbc.SetParameter -import scala.annotation.unchecked.uncheckedVariance -import scala.deriving.* import scala.compiletime.{error, erasedValue, summonInline, summonFrom} import utils.PgTokenHelper._ import utils.TypeConverters._