All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kaizensolutions.virgil.codecs.CqlPrimitiveDecoderFS2Instances.scala Maven / Gradle / Ivy

The newest version!
package io.kaizensolutions.virgil.codecs

import fs2.Chunk
import io.kaizensolutions.virgil.codecs.CqlPrimitiveDecoder.ListPrimitiveDecoder

import scala.jdk.CollectionConverters._

trait CqlPrimitiveDecoderFS2Instances {
  implicit def chunkCqlPrimitiveDecoder[A](implicit
    element: CqlPrimitiveDecoder[A]
  ): CqlPrimitiveDecoder.WithDriver[Chunk[A], java.util.List[element.DriverType]] =
    ListPrimitiveDecoder[Chunk, A, element.DriverType](
      element,
      (driverList, transformElement) => Chunk.from(driverList.asScala.map(transformElement))
    )
}
object CqlPrimitiveDecoderFS2Instances extends CqlPrimitiveDecoderFS2Instances




© 2015 - 2024 Weber Informatics LLC | Privacy Policy