Skip to content

Commit

Permalink
comment out methods so as not to lead to misuse
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed Dec 6, 2023
1 parent d924a60 commit 3d9d4b9
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 3d9d4b9

Please sign in to comment.