RowEncoderInstances

kantan.csv.RowEncoderInstances

Provides reasonable default RowEncoder instances for various types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object codecs

Members list

Implicits

Implicits

implicit def fromCellEncoder[A : CellEncoder]: RowEncoder[A]

Turns a CellEncoder into a RowEncoder, for rows that contain a single value.

Turns a CellEncoder into a RowEncoder, for rows that contain a single value.

scala> RowEncoder[Int].encode(123)
res1: Seq[String] = List(123)

Attributes

Inherited implicits

implicit def iterable[A : CellEncoder, M <: (IterableOnce)]: RowEncoder[M[A]]

Provides a RowEncoder instance for all traversable collections.

Provides a RowEncoder instance for all traversable collections.

List, for example:

scala> RowEncoder[List[Int]].encode(List(123, 456, 789))
res1: Seq[String] = List(123, 456, 789)

Attributes

Inherited from:
VersionSpecificRowEncoderInstances