CqlRowDecoder

io.kaizensolutions.virgil.codecs.CqlRowDecoder
See theCqlRowDecoder companion trait

Attributes

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

Members list

Type members

Classlikes

trait Object[A] extends CqlRowDecoder[A]

A CqlRowDecoder.Object is a mechanism that provides a way to decode an entire Row into some Scala type A.

A CqlRowDecoder.Object is a mechanism that provides a way to decode an entire Row into some Scala type A.

NOTE: The automatic derivation mechanism and the custom method can produce the following subtype. The automatic derivation mechanism uses fromCqlPrimitive to create a CqlRowDecoder which knows how to extract a component. We use Magnolia to build up Scala case classes from their components

Attributes

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

Inherited types

type Typeclass[T] = CqlRowDecoder[T]

Attributes

Inherited from:
CommonDerivation

Value members

Concrete methods

def apply[A](implicit ev: Object[A]): Object[A]
def cursor[A](f: RowCursor => Either[DecoderException, A]): Object[A]
def cursorEither[A](f: RowCursor => Either[DecoderException, A]): Object[Either[DecoderException, A]]
def custom[A](f: Row => A): 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:
RowDecoderMagnoliaDerivation
inline def derivedMirror[A](using mirror: Of[A]): CqlRowDecoder[A]

Attributes

Inherited from:
ProductDerivation
inline def derivedMirrorProduct[A](product: ProductOf[A]): CqlRowDecoder[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:
RowDecoderMagnoliaDerivation

Givens

Inherited givens

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

Attributes

Inherited from:
ProductDerivation

Implicits

Implicits

implicit def fromCqlPrimitive[A](implicit prim: CqlPrimitiveDecoder[A]): CqlRowDecoder[A]
implicit def tuple10RowDecoder[A, B, C, D, E, F, G, H, I, J](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J]): Object[(A, B, C, D, E, F, G, H, I, J)]
implicit def tuple11RowDecoder[A, B, C, D, E, F, G, H, I, J, K](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K]): Object[(A, B, C, D, E, F, G, H, I, J, K)]
implicit def tuple12RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L]): Object[(A, B, C, D, E, F, G, H, I, J, K, L)]
implicit def tuple13RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M)]
implicit def tuple14RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)]
implicit def tuple15RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)]
implicit def tuple16RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]
implicit def tuple17RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P], seventeen: CqlPrimitiveDecoder[Q]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)]
implicit def tuple18RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P], seventeen: CqlPrimitiveDecoder[Q], eighteen: CqlPrimitiveDecoder[R]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)]
implicit def tuple19RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P], seventeen: CqlPrimitiveDecoder[Q], eighteen: CqlPrimitiveDecoder[R], nineteen: CqlPrimitiveDecoder[S]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)]
implicit def tuple1RowDecoder[A](implicit one: CqlPrimitiveDecoder[A]): Object[Tuple1[A]]
implicit def tuple20RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P], seventeen: CqlPrimitiveDecoder[Q], eighteen: CqlPrimitiveDecoder[R], nineteen: CqlPrimitiveDecoder[S], twenty: CqlPrimitiveDecoder[T]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)]
implicit def tuple21RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P], seventeen: CqlPrimitiveDecoder[Q], eighteen: CqlPrimitiveDecoder[R], nineteen: CqlPrimitiveDecoder[S], twenty: CqlPrimitiveDecoder[T], twentyOne: CqlPrimitiveDecoder[U]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)]
implicit def tuple22RowDecoder[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I], ten: CqlPrimitiveDecoder[J], eleven: CqlPrimitiveDecoder[K], twelve: CqlPrimitiveDecoder[L], thirteen: CqlPrimitiveDecoder[M], fourteen: CqlPrimitiveDecoder[N], fifteen: CqlPrimitiveDecoder[O], sixteen: CqlPrimitiveDecoder[P], seventeen: CqlPrimitiveDecoder[Q], eighteen: CqlPrimitiveDecoder[R], nineteen: CqlPrimitiveDecoder[S], twenty: CqlPrimitiveDecoder[T], twentyOne: CqlPrimitiveDecoder[U], twentyTwo: CqlPrimitiveDecoder[V]): Object[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)]
implicit def tuple2RowDecoder[A, B](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B]): Object[(A, B)]
implicit def tuple3RowDecoder[A, B, C](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C]): Object[(A, B, C)]
implicit def tuple4RowDecoder[A, B, C, D](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D]): Object[(A, B, C, D)]
implicit def tuple5RowDecoder[A, B, C, D, E](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E]): Object[(A, B, C, D, E)]
implicit def tuple6RowDecoder[A, B, C, D, E, F](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F]): Object[(A, B, C, D, E, F)]
implicit def tuple7RowDecoder[A, B, C, D, E, F, G](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G]): Object[(A, B, C, D, E, F, G)]
implicit def tuple8RowDecoder[A, B, C, D, E, F, G, H](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H]): Object[(A, B, C, D, E, F, G, H)]
implicit def tuple9RowDecoder[A, B, C, D, E, F, G, H, I](implicit one: CqlPrimitiveDecoder[A], two: CqlPrimitiveDecoder[B], three: CqlPrimitiveDecoder[C], four: CqlPrimitiveDecoder[D], five: CqlPrimitiveDecoder[E], six: CqlPrimitiveDecoder[F], seven: CqlPrimitiveDecoder[G], eight: CqlPrimitiveDecoder[H], nine: CqlPrimitiveDecoder[I]): Object[(A, B, C, D, E, F, G, H, I)]