Skip to content

Commit

Permalink
jump to v0.22.0-M5
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Dec 17, 2023
1 parent 68324de commit 9f45ada
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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)
Expand Down Expand Up @@ -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

///
Expand Down
Original file line number Diff line number Diff line change
@@ -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._
Expand Down

0 comments on commit 9f45ada

Please sign in to comment.