From 3d9d4b9be97169dbebf1cb1416a7d01e0c6905b1 Mon Sep 17 00:00:00 2001 From: Hugh Simpson Date: Wed, 6 Dec 2023 23:39:47 +0000 Subject: [PATCH] comment out methods so as not to lead to misuse --- .../tminglei/slickpg/PgCompositeSupport.scala | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) 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 fef8c99e..7c059027 100644 --- a/src/main/scala-3/com/github/tminglei/slickpg/PgCompositeSupport.scala +++ b/src/main/scala-3/com/github/tminglei/slickpg/PgCompositeSupport.scala @@ -14,28 +14,28 @@ import scala.compiletime.{error, erasedValue, summonInline} trait PgCompositeSupport extends utils.PgCommonJdbcTypes with array.PgArrayJdbcTypes { driver: PostgresProfile => protected lazy val emptyMembersAsNull = true - - //--- - def createCompositeJdbcType[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]): GenericJdbcType[T] = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - - def createCompositeArrayJdbcType[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]): AdvancedArrayJdbcType[T] = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - - /// Plain SQL support - def nextComposite[T <: Struct](r: PositionedResult, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - def nextCompositeArray[T <: Struct](r: PositionedResult, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - - def createCompositeSetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - - def createCompositeOptionSetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - def createCompositeArraySetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = { - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") - } - def createCompositeOptionArraySetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = - throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// +// //--- +// def createCompositeJdbcType[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]): GenericJdbcType[T] = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// +// def createCompositeArrayJdbcType[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]): AdvancedArrayJdbcType[T] = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// +// /// Plain SQL support +// def nextComposite[T <: Struct](r: PositionedResult, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// def nextCompositeArray[T <: Struct](r: PositionedResult, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// +// def createCompositeSetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// +// def createCompositeOptionSetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// def createCompositeArraySetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = { +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") +// } +// def createCompositeOptionArraySetParameter[T <: Struct](sqlTypeName: String, cl: ClassLoader = getClass.getClassLoader)(implicit ev: TTag[T], tag: ClassTag[T]) = +// throw new UnsupportedOperationException("Composite support is unimplemented for scala 3") }