ReadsInstances0

zio.cassandra.session.cql.codec.ReadsInstances0

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Reads.type

Members list

Concise view

Value members

Concrete methods

inline def derive[T <: Product : ProductOf](implicit evidence$1: ProductOf[T], configuration: Configuration): Reads[T]

Useful when you want to "cache" zio.cassandra.session.cql.codec.Reads instance (e.g. to decrease compilation time or make sure it captures the correct zio.cassandra.session.cql.codec.Configuration)

Useful when you want to "cache" zio.cassandra.session.cql.codec.Reads instance (e.g. to decrease compilation time or make sure it captures the correct zio.cassandra.session.cql.codec.Configuration)

Example:

final case class Foo(a: Int, b: String)

// somewhere else
implicit val configuration: Configuration = {
 val renameFields: String => String = {
   case "a"   => "some_other_name"
   case other => Configuration.snakeCaseTransformation(other)
   }
 Configuration(renameFields)
}

implicit val reads: Reads[Foo] = Reads.derive

Attributes

Inherited methods

protected def readByIndex[T : CellReads](row: Row, index: Int): T

Attributes

Inherited from:
ReadsInstances3
protected def refineError(row: Row, columnDefinition: ColumnDefinition): PartialFunction[Throwable, Nothing]

Attributes

Inherited from:
ReadsInstances3

Givens

Inherited givens

inline given derived[T <: Product : ProductOf](implicit evidence$2: ProductOf[T], configuration: Configuration): Reads[T]

Attributes

Inherited from:
ReadsInstances2

Attributes

Inherited from:
ReadsInstances1
inline given tupleNReads[T <: Tuple]: Reads[T]

Attributes

Inherited from:
ReadsInstances1

Implicits

Inherited implicits

implicit def readsFromCellReads[T : CellReads]: Reads[T]

Attributes

Inherited from:
ReadsInstances3