CqlUdtValueEncoder

io.kaizensolutions.virgil.codecs.CqlUdtValueEncoder
See theCqlUdtValueEncoder companion trait

Attributes

Companion
trait
Graph
Supertypes
trait ProductDerivation[CqlUdtValueEncoder]
trait CommonDerivation[CqlUdtValueEncoder]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

trait Object[A] extends CqlUdtValueEncoder[A]

A CqlUdtValueEncoder.Object that encodes a Scala type A as an entire UdtValue. This is really contravariant in A but Magnolia's automatic derivation process is disrupted

A CqlUdtValueEncoder.Object that encodes a Scala type A as an entire UdtValue. This is really contravariant in A but Magnolia's automatic derivation process is disrupted

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Object[A]

Inherited types

Attributes

Inherited from:
CommonDerivation

Value members

Concrete methods

def apply[A](implicit encoder: Object[A]): Object[A]
def custom[A](f: (UdtValue, A) => UdtValue): Object[A]

Inherited methods

inline def `getParams__`[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], inheritedAnnotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], defaults: Map[String, Option[() => Any]], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
inline def derive[A](using Of[A]): Object[A]

Attributes

Inherited from:
UdtValueEncoderMagnoliaDerivation
inline def derivedMirror[A](using mirror: Of[A]): CqlUdtValueEncoder[A]

Attributes

Inherited from:
ProductDerivation
inline def derivedMirrorProduct[A](product: ProductOf[A]): CqlUdtValueEncoder[A]

Attributes

Inherited from:
CommonDerivation
inline def getParams[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
inline def getParams_[T, Labels <: Tuple, Params <: Tuple](annotations: Map[String, List[Any]], inheritedAnnotations: Map[String, List[Any]], typeAnnotations: Map[String, List[Any]], repeated: Map[String, Boolean], idx: Int): List[Param[Typeclass, T]]

Attributes

Inherited from:
CommonDerivation
final def join[T](ctx: CaseClass[Typeclass, T]): Object[T]

Must be implemented by the user of Magnolia to construct a typeclass for case class T using the provided type info. E.g. if we are deriving Show[T] typeclasses, and T is a case class Foo(...), we need to constuct Show[Foo].

Must be implemented by the user of Magnolia to construct a typeclass for case class T using the provided type info. E.g. if we are deriving Show[T] typeclasses, and T is a case class Foo(...), we need to constuct Show[Foo].

This method is called 'join' because typically it will join together the typeclasses for all the parameters of the case class, into a single typeclass for the case class itself. The field CaseClass.params can provide useful information for doing this.

Value parameters

caseClass

information about the case class T, its parameters, and their typeclasses

Attributes

Inherited from:
UdtValueEncoderMagnoliaDerivation

Givens

Inherited givens

inline given derived[A](using Of[A]): CqlUdtValueEncoder[A]

Attributes

Inherited from:
ProductDerivation

Implicits

Implicits

implicit def fromCqlPrimitive[A](implicit prim: CqlPrimitiveEncoder[A]): CqlUdtValueEncoder[A]