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

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

There is a newer version: 1.2.1
Show newest version
package io.kaizensolutions.virgil.codecs

import fs2.Chunk
import io.kaizensolutions.virgil.codecs.CqlPrimitiveEncoder.ListPrimitiveEncoder

import scala.jdk.CollectionConverters._

trait CqlPrimitiveEncoderFS2Instances {
  implicit def chunkCqlPrimitiveEncoder[A](implicit
    element: CqlPrimitiveEncoder[A]
  ): ListPrimitiveEncoder[Chunk, A, element.DriverType] =
    ListPrimitiveEncoder[Chunk, A, element.DriverType](
      element,
      (chunk, transform) => chunk.map(transform).toList.asJava
    )
}

object CqlPrimitiveEncoderFS2Instances extends CqlPrimitiveEncoderFS2Instances




© 2015 - 2024 Weber Informatics LLC | Privacy Policy